From patchwork Sun Apr 7 19:52:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= X-Patchwork-Id: 10888619 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 18A0A188E for ; Sun, 7 Apr 2019 19:52:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0115C28653 for ; Sun, 7 Apr 2019 19:52:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E98362863C; Sun, 7 Apr 2019 19:52:57 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6629B28620 for ; Sun, 7 Apr 2019 19:52:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726457AbfDGTwl (ORCPT ); Sun, 7 Apr 2019 15:52:41 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:34360 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726362AbfDGTwl (ORCPT ); Sun, 7 Apr 2019 15:52:41 -0400 Received: by mail-wr1-f65.google.com with SMTP id p10so13867378wrq.1 for ; Sun, 07 Apr 2019 12:52:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ZS9CqQWCd0ef1TG4R/YHUa/z7JHJOFvfGolVnJBi6uI=; b=cpsJ+hVo5NQkTK8oEgj76FBhwhMr1LWXsav9bjZ3ZD3/jczJcrmTRwWgJ0e5yyKzJa co4oz5z7M+pXnenJgbnj47aAxR6x1FmwMR0cVyzceb9OA1y3D2TQfgwiSHkVU1h3FdI/ oMacc0836GzIfzu6Ldmv5V3k6IAWccVNUcR38nqy9ENVB/IHkZbEj3Y/UrJwcY0ckXFY 0ZM7Ff7ZhYiJCkEqzgsnbLlIV4rZy/1hx3x+7+uyM5cGl8AKKyUFozpUuqVvQBLZFVyh Dej5nI64shOIndCCSx64e1T2Q2n5Qrr9gy3Do+fSS+b33fZzIJ4Cn5MPXwHC3iNn2fBK zhDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZS9CqQWCd0ef1TG4R/YHUa/z7JHJOFvfGolVnJBi6uI=; b=XrTFSHwvi1dY7jXGMoIy2P3Ekb6XLpzbSyWdmMrteZj/iG3b+Hiz/g0EzLfsIgYydY dRMJGAsCMEfvdj8Us/tkQEUJZLn4DnPm72ZGfedd1kkuRoNSycV3M0jZdRRsX8h3pnzV YqdgqKd6h7FcK4PkCaoUrzbj6HEihCVQQTwaTJdkjOwxvkKJC15TSlcelQpZVzq8gC+G JVtnNeGQPcAMACHQKHe+ciWW4yY6BLDM32VK2FIHB1P9EtCIrJco/Oasj055QMxszDM5 vtmA0ThVHBDl5Qmxa9P+pxrTgFAA4jwstBbFvdf09hXMtVymyFAk7PxbrGeq7rXRQ6+r gURw== X-Gm-Message-State: APjAAAVL29POWcVa2lBM65vNpFhsrIAk8k0hXvwdJtfpPmMwDTBRJ4Fm AUIkynYOgEQOQxWq1Sog9Nx2FxcH X-Google-Smtp-Source: APXvYqzaoehavik2pbDfYvkHeSpGFgSRohEJzk498UC8KIUuuSQydW9AzYNo/QTAl310HHGmck25lw== X-Received: by 2002:a5d:6a89:: with SMTP id s9mr6970100wru.58.1554666758980; Sun, 07 Apr 2019 12:52:38 -0700 (PDT) Received: from vm.nix.is ([2a01:4f8:120:2468::2]) by smtp.gmail.com with ESMTPSA id e16sm41815402wrs.0.2019.04.07.12.52.38 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 07 Apr 2019 12:52:38 -0700 (PDT) From: =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= To: git@vger.kernel.org Cc: Junio C Hamano , =?utf-8?b?Tmd1eeG7hW4gVGjDoWkgTmc=?= =?utf-8?b?4buNYyBEdXk=?= , Jeff King , Michael Haggerty , Stefan Beller , Jonathan Nieder , Matt McCutchen , Johannes Sixt , Todd Zullinger , =?utf-8?b?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFz?= =?utf-8?b?b24=?= Subject: [PATCH v4 02/11] gc docs: stop noting "repack" flags Date: Sun, 7 Apr 2019 21:52:08 +0200 Message-Id: <20190407195217.3607-3-avarab@gmail.com> X-Mailer: git-send-email 2.21.0.392.gf8f6787159e In-Reply-To: <20190322093242.5508-5-avarab@gmail.com> References: <20190322093242.5508-5-avarab@gmail.com> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the mention of specific flags from the "gc" documentation, and leave it at describing what we'll do instead. As seen in builtin/gc.c we'll use various repack flags depending on what we detect we need to do, so this isn't always accurate. More importantly, a subsequent change is about to remove all this documentation and replace it with an include of the gc.* docs in git-config(1). By first changing this it's easier to reason about that subsequent change. Signed-off-by: Ævar Arnfjörð Bjarmason --- Documentation/git-gc.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt index dd22eecc79..c56f4f7cde 100644 --- a/Documentation/git-gc.txt +++ b/Documentation/git-gc.txt @@ -52,14 +52,13 @@ OPTIONS + If the number of loose objects exceeds the value of the `gc.auto` configuration variable, then all loose objects are combined into a -single pack using `git repack -d -l`. Setting the value of `gc.auto` +single pack. Setting the value of `gc.auto` to 0 disables automatic packing of loose objects. + If the number of packs exceeds the value of `gc.autoPackLimit`, then existing packs (except those marked with a `.keep` file or over `gc.bigPackThreshold` limit) -are consolidated into a single pack by using the `-A` option of -'git repack'. +are consolidated into a single pack. If the amount of memory is estimated not enough for `git repack` to run smoothly and `gc.bigPackThreshold` is not set, the largest pack will also be excluded (this is the equivalent of running `git gc`