git-gc: by default use safer "-A" option to repack when not --prune'ing
authorBrandon Casey <casey@nrlssc.navy.mil>
Thu, 11 Oct 2007 00:59:19 +0000 (19:59 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Tue, 16 Oct 2007 00:50:05 +0000 (20:50 -0400)
commitedb0e04e819c7cde709d10e03f398d12692259f7
treeedeb39018c213c9e9b3566a3529d7ddbfa28e4b2
parent2f27f8509edfe55f267ce9207dc42c12d4809a84
git-gc: by default use safer "-A" option to repack when not --prune'ing

This makes use of repack's new "-A" option which does not drop packed
unreachable objects. This makes git-gc safe to call at any time,
particularly when a repository is referenced as an alternate by
another repository.

git-gc --prune will use the "-a" option to repack instead of "-A", so
that packed unreachable objects will be removed.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
builtin-gc.c