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
MAMartin Atukunda <matlads@dsmagic.com>
Date
Mar 9, 2006, 10:24 UTC
Message-ID
<20060309102419.GA9961@igloo.ds.co.ug>
In-Reply-To
<20060307212918.GA9474@steel.home>

Your suggestion has merit, though it's different from the behaviour I desired. I _sometimes_ need the pruning, and it felt appropriate to make it an option as opposed to default behaviour.

What do you think?
- Martin -
On Tue, Mar 07, 2006 at 10:29:18PM +0100, Alex Riesen wrote:
Show 29 quoted lines
> 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
>  
> 
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
-- 
Girl on cell: Can you hear me when I roll my eyes?
	-- www.overheardinnewyourk.com
Previous: Alex RiesenNext: Alex Riesen
Message 3 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.