Skip to content

Commit 283174b

Browse files
john-caigitster
authored andcommitted
docs: clarify git-pack-refs --all will pack all refs
--all packs not just branch tips but anything under refs/ with the exception of hidden refs and broken refs. Clarify this in the documentation. Signed-off-by: John Cai <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 69c7866 commit 283174b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Documentation/git-pack-refs.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ The command by default packs all tags and refs that are already
5151
packed, and leaves other refs
5252
alone. This is because branches are expected to be actively
5353
developed and packing their tips does not help performance.
54-
This option causes branch tips to be packed as well. Useful for
55-
a repository with many branches of historical interests.
54+
This option causes all refs to be packed as well, with the exception
55+
of hidden refs, broken refs, and symbolic refs. Useful for a repository
56+
with many branches of historical interests.
5657

5758
--no-prune::
5859

0 commit comments

Comments
 (0)