]> git.ipfire.org Git - thirdparty/git.git/commit - Documentation/git-prune.txt
git-prune: never lose objects reachable from our refs.
authorJunio C Hamano <junkio@cox.net>
Fri, 9 Dec 2005 07:18:41 +0000 (23:18 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 9 Dec 2005 07:18:41 +0000 (23:18 -0800)
commit2b86976bfd6e42609692d57fffaef72bd985c23a
treec0839ba1ec37f195a19a5cca13cf6fe499088494
parent2dee581667d62d113605e97de0beda6a9dbca153
git-prune: never lose objects reachable from our refs.

Explicit <head> arguments to git-prune replaces, instead of
extends, the list of heads used for reachability analysis by
fsck-objects.  By giving a subset of heads by mistake, objects
reachable only from other heads can be removed, resulting in a
corrupted repository.

This commit stops replacing the list of heads, and makes the
command line arguments to add to them instead for safety.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-prune.txt
git-prune.sh