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

Re: [PATCH] Create 'git gc' to perform common maintenance operations.

From
Shawn Pearce <spearce@spearce.org>
Date
Dec 27, 2006, 08:33 UTC
Message-ID
<20061227083328.GD23022@spearce.org>
In-Reply-To
<7vhcvh922r.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 10 quoted lines
> Shawn Pearce <spearce@spearce.org> writes:
> 
> > I don't care either way.  60 days may be too long for some users,
> > but for others it may be nice to have.  I think the two defaults
> > should match just because.  Feel free to edit my patch before
> > applying to be whatever 'git-reflog expire' uses if you want.
> 
> I think the built-in git-reflog should be updated to honor the
> configuration in the absense of command line options; if we do
> that git-gc.sh does not even have to call repo-config anymore.

Sure, but then maybe the configuration options shouldn't be 'gc.reflog*' but instead 'reflog.*'.

git-gc.sh was a quick hack while I was waiting for that huge disk IO to repack a git.git with 1.3.3. I was trying to avoid hacking C code for it, but you are probably right, better to just make the C code do the right thing from "day one".

-- 
Shawn.
Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 8 in “Create 'git gc' to perform common maintenance operations.”
  1. Create 'git gc' to perform common maintenance operations.Shawn O. Pearce, Dec 27, 2006
  2. Junio C HamanoDec 27, 2006
  3. Shawn PearceDec 27, 2006
  4. Junio C HamanoDec 27, 2006
  5. Shawn PearceDec 27, 2006
  6. Junio C HamanoDec 27, 2006
  7. Martin WaitzDec 27, 2006
  8. Junio C HamanoDec 27, 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.