From: "Shawn O. Pearce" <spearce@spearce.org>
To: Junio C Hamano <junkio@cox.net>
Cc: git@vger.kernel.org
Subject: [PATCH] Teach git-gc to only repack local (not borrowed) objects.
Date: Wed, 27 Dec 2006 18:47:54 -0500 [thread overview]
Message-ID: <20061227234753.GA16389@spearce.org> (raw)
This feature was suggested by Martin Waitz on the git mailing list
and is actually the correct thing to do. If the current repository
is borrowing objects from repository then this repository is not
usually considered to be maintaining the objects which are available
through that other repository's object database. We really should
only repack objects which are stored directly in this repository,
so supply -l to git-repack.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
git-gc.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-gc.sh b/git-gc.sh
index e55ed19..6de55f7 100755
--- a/git-gc.sh
+++ b/git-gc.sh
@@ -10,6 +10,6 @@ SUBDIRECTORY_OK=Yes
git-pack-refs --prune &&
git-reflog expire --all &&
-git-repack -a -d &&
+git-repack -a -d -l &&
git-prune &&
git-rerere gc || exit
--
1.4.4.3.gd2e4
reply other threads:[~2006-12-27 23:48 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20061227234753.GA16389@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=junkio@cox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).