Skip to content

Commit

Permalink
Change git-gc documentation to reflect gc.packrefs implementation.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Florian La Roche authored and Junio C Hamano committed Jan 9, 2008
1 parent 13e4760 commit fe2128a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Documentation/git-gc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ how long records of conflicted merge you have not resolved are
kept. This defaults to 15 days.

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

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

0 comments on commit fe2128a

Please sign in to comment.