author | Brandon Casey <casey@nrlssc.navy.mil> | |
Thu, 11 Oct 2007 00:59:19 +0000 (19:59 -0500) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 16 Oct 2007 00:50:05 +0000 (20:50 -0400) | ||
commit | edb0e04e819c7cde709d10e03f398d12692259f7 | |
tree | edeb39018c213c9e9b3566a3529d7ddbfa28e4b2 | tree | snapshot |
parent | 2f27f8509edfe55f267ce9207dc42c12d4809a84 | commit | diff |
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>
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 | diff | blob | history |