Skip to content

Commit fe2128a

Browse files
Florian La Rochegitster
authored andcommitted
Change git-gc documentation to reflect gc.packrefs implementation.
5675239 (Make "git gc" pack all refs by default) changed the default of gc.packrefs to true, to pack all refs by default in any repository. IOW, the users need to disable it explicitly if they want to by setting the config variable, since 1.5.3. However, we forgot to update the documentation. This fixes it. Signed-off-by: Florian La Roche <laroche@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 13e4760 commit fe2128a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Documentation/git-gc.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ how long records of conflicted merge you have not resolved are
9090
kept. This defaults to 15 days.
9191

9292
The optional configuration variable 'gc.packrefs' determines if
93-
`git gc` runs `git-pack-refs`. Without the configuration, `git-pack-refs`
94-
is not run in bare repositories by default, to allow older dumb-transport
95-
clients fetch from the repository, but this will change in the future.
93+
`git gc` runs `git-pack-refs`. This can be set to "nobare" to enable
94+
it within all non-bare repos or it can be set to a boolean value.
95+
This defaults to true.
9696

9797
The optional configuration variable 'gc.aggressiveWindow' controls how
9898
much time is spent optimizing the delta compression of the objects in

0 commit comments

Comments
 (0)