Skip to content

Commit 58949bb

Browse files
cdfreygitster
authored andcommitted
Documentation/git-prune.txt: document unpacked logic
Clarifies the git-prune man page, documenting that it only prunes unpacked objects. Signed-off-by: Chris Frey <cdfrey@foursquare.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent c7ea453 commit 58949bb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Documentation/git-prune.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ git-prune. See the section "NOTES", below.
1818

1919
This runs `git-fsck --unreachable` using all the refs
2020
available in `$GIT_DIR/refs`, optionally with additional set of
21-
objects specified on the command line, and prunes all
21+
objects specified on the command line, and prunes all unpacked
2222
objects unreachable from any of these head objects from the object database.
2323
In addition, it
2424
prunes the unpacked objects that are also found in packs by
2525
running `git prune-packed`.
2626

27+
Note that unreachable, packed objects will remain. If this is
28+
not desired, see linkgit:git-repack[1].
29+
2730
OPTIONS
2831
-------
2932

0 commit comments

Comments
 (0)