Skip to content

Commit bbefaa1

Browse files
cdfreygitster
authored andcommitted
Documentation/git-repack.txt: document new -A behaviour
Add paragraph for the -A option, and describe the new behaviour that makes unreachable objects loose. Signed-off-by: Chris Frey <cdfrey@foursquare.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ca11b21 commit bbefaa1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Documentation/git-repack.txt

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-repack - Pack unpacked objects in a repository
88

99
SYNOPSIS
1010
--------
11-
'git-repack' [-a] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]
11+
'git-repack' [-a] [-A] [-d] [-f] [-l] [-n] [-q] [--window=N] [--depth=N]
1212

1313
DESCRIPTION
1414
-----------
@@ -37,6 +37,18 @@ OPTIONS
3737
leaves behind, but `git fsck --full` shows as
3838
dangling.
3939

40+
-A::
41+
Same as `-a`, but any unreachable objects in a previous
42+
pack become loose, unpacked objects, instead of being
43+
left in the old pack. Unreachable objects are never
44+
intentionally added to a pack, even when repacking.
45+
When used with '-d', this option
46+
prevents unreachable objects from being immediately
47+
deleted by way of being left in the old pack and then
48+
removed. Instead, the loose unreachable objects
49+
will be pruned according to normal expiry rules
50+
with the next linkgit:git-gc[1].
51+
4052
-d::
4153
After packing, if the newly created packs make some
4254
existing packs redundant, remove the redundant packs.

0 commit comments

Comments
 (0)