]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/reflog.c
reflog expire: prune commits that are not incomplete
authorJunio C Hamano <junkio@cox.net>
Fri, 22 Dec 2006 08:46:33 +0000 (00:46 -0800)
committerJunio C Hamano <junkio@cox.net>
Fri, 22 Dec 2006 08:46:33 +0000 (00:46 -0800)
commit8d8b9f6252271899708b32fbce4cd2541af9545a
tree003a47bd55cc900624402cee450d0922a446aec4
parent71b03b42c637d884295b48d4f5d830a5f5f3578b
reflog expire: prune commits that are not incomplete

Older fsck-objects and prune did not protect commits in reflog
entries, and it is quite possible that a commit still exists in
the repository (because it was in a pack, or something) while
some of its trees and blobs are long gone.  Make sure the commit
and its associated tree is complete and expire incomplete ones.

Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-reflog.c