git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Allow git-repack to optionally run git-prune-packed.

From
Alex Riesen <raa.lkml@gmail.com>
Date
Mar 7, 2006, 21:29 UTC
Message-ID
<20060307212918.GA9474@steel.home>
In-Reply-To
<11417445722524-git-send-email-matlads@dsmagic.com>
Martin Atukunda, Tue, Mar 07, 2006 16:16:12 +0100:
> +-p::
> +	Run `git-prune-packed` after packing, see
> +	gitlink:git-prune-packed[1]
> +

Maybe just make "-d" work? I.e. "git repack -a -d" repacks and prunes everything, and "git repack -d" prunes just what was packed incrementally. Something like this:

diff --git a/git-repack.sh b/git-repack.sh
index 3d6fec1..be6c7ab 100755
--- a/git-repack.sh
+++ b/git-repack.sh
@@ -74,6 +74,8 @@ then
 			esac
 		  done
 		)
+	else
+		git-prune-packed
 	fi
 fi
 
Previous: Martin AtukundaNext: Martin Atukunda
Message 2 of 5 in “Allow git-repack to optionally run git-prune-packed.”
  1. Allow git-repack to optionally run git-prune-packed.Martin Atukunda, Mar 7, 2006
  2. Alex RiesenMar 7, 2006
  3. Martin AtukundaMar 9, 2006
  4. Alex RiesenMar 9, 2006
  5. Junio C HamanoMar 9, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.