author | Brandon Casey <casey@nrlssc.navy.mil> | |
Wed, 19 Mar 2008 21:53:20 +0000 (16:53 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 20 Mar 2008 00:29:52 +0000 (17:29 -0700) | ||
commit | b14d255ba8362a4debe51dc67d6b98d06fdc36aa | |
tree | 7a8e731c731c3cec6c97a0122ee77613139a6608 | tree | snapshot |
parent | 02b00e16bb372fd13e1ac440e9fbafd223d43af0 | commit | diff |
builtin-gc.c: allow disabling all auto-gc'ing by assigning 0 to gc.auto
The gc.auto configuration variable is somewhat ambiguous now that there
is also a gc.autopacklimit setting. Some users may assume that it controls
all auto-gc'ing. Also, now users must set two configuration variables to
zero when they want to disable autopacking. Since it is unlikely that users
will want to autopack based on some threshold of pack files when they have
disabled autopacking based on the number of loose objects, be nice and allow
a setting of zero for gc.auto to disable all autopacking.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The gc.auto configuration variable is somewhat ambiguous now that there
is also a gc.autopacklimit setting. Some users may assume that it controls
all auto-gc'ing. Also, now users must set two configuration variables to
zero when they want to disable autopacking. Since it is unlikely that users
will want to autopack based on some threshold of pack files when they have
disabled autopacking based on the number of loose objects, be nice and allow
a setting of zero for gc.auto to disable all autopacking.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-gc.c | diff | blob | history |