author | Junio C Hamano <junkio@cox.net> | |
Thu, 21 Sep 2006 07:06:06 +0000 (00:06 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 21 Sep 2006 07:06:54 +0000 (00:06 -0700) | ||
commit | 968846015229fe0fec28e3c85db722e131c15f93 | |
tree | 077a1bf5daede74cbb12728f0409c7206c73116d | tree | snapshot |
parent | 13e4aa90acad5738f54385c8a336f89fb6aacdd0 | commit | diff |
git-pack-refs --prune
"git pack-refs --prune", after successfully packing the existing
refs, removes the loose ref files. It tries to protect against
race by doing the usual lock_ref_sha1() which makes sure the
contents of the ref has not changed since we last looked at.
Also we do not bother trying to prune what was already packed, and
we do not try pruning symbolic refs.
Signed-off-by: Junio C Hamano <junkio@cox.net>
"git pack-refs --prune", after successfully packing the existing
refs, removes the loose ref files. It tries to protect against
race by doing the usual lock_ref_sha1() which makes sure the
contents of the ref has not changed since we last looked at.
Also we do not bother trying to prune what was already packed, and
we do not try pruning symbolic refs.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-pack-refs.c | diff | blob | history |