{"thread":{"id":"6132","subject":"[PATCH] Teach git-gc to only repack local (not borrowed) objects.","startedAt":"2006-12-27T23:47:54Z","lastAt":"2006-12-27T23:47:54Z","messageCount":1,"participants":["Shawn O. Pearce"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"30368","messageId":"20061227234753.GA16389@spearce.org","threadId":"6132","inReplyTo":null,"subject":"[PATCH] Teach git-gc to only repack local (not borrowed) objects.","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2006-12-27T23:47:54Z","receivedAt":"2006-12-27T23:47:54Z","isPatch":true,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"This feature was suggested by Martin Waitz on the git mailing list\nand is actually the correct thing to do.  If the current repository\nis borrowing objects from repository then this repository is not\nusually considered to be maintaining the objects which are available\nthrough that other repository's object database.  We really should\nonly repack objects which are stored directly in this repository,\nso supply -l to git-repack.\n\nSigned-off-by: Shawn O. Pearce <spearce@spearce.org>\n---\n git-gc.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-gc.sh b/git-gc.sh\nindex e55ed19..6de55f7 100755\n--- a/git-gc.sh\n+++ b/git-gc.sh\n@@ -10,6 +10,6 @@ SUBDIRECTORY_OK=Yes\n \n git-pack-refs --prune &&\n git-reflog expire --all &&\n-git-repack -a -d &&\n+git-repack -a -d -l &&\n git-prune &&\n git-rerere gc || exit\n-- \n1.4.4.3.gd2e4\n"}]}