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

Re: [PATCH] bash completion: remove deprecated --prune from git-gc

From
Brandon Casey <casey@nrlssc.navy.mil>
Date
Dec 15, 2008, 16:51 UTC
Message-ID
<0zFE1s-V9qRpO8jkUYC05iTwrouhwDxFz3yJgo_P3R0KZaGeJ6jKSg@cipher.nrlssc.navy.mil>
In-Reply-To
<20081214111213.GA6499@coredump.intra.peff.net>
Jeff King wrote:
Show 12 quoted lines
> On Sun, Dec 14, 2008 at 11:38:17AM +0100, Johannes Schindelin wrote:
> 
>>> -		__gitcomp "--prune --aggressive"
>>> +		__gitcomp "--aggressive"
>> git gc --prune is deprecated?  That's news to me.
> 
> Check out 9e7d501 (builtin-gc.c: deprecate --prune, it now really has no
> effect, 2008-05-09).
> 
> Which annoyingly has no discussion about _why_ it no longer has an
> effect. But I suspect it has something to do with 25ee973 (gc: call
> "prune --expire 2.weeks.ago" by default, 2008-03-12) by you.

I think the nail in the coffin for --prune was a37cce3b, which preceded 9e7d501. I guess the commit message for 9e7d501 made sense with a37cce3b as a reference. There was another commit around the same time which claimed that --prune was deprecated even though it still provided some functionality, hence the "...really has no effect" part.

I definitely remember that Johannes implemented the gc.pruneExpire functionality, so his "That's news to me" made me laugh. Thanks for the chuckle Johannes. :)

-brandon
Previous: Brandon CaseyNext: Jakub Narebski
Message 7 of 8 in “bash completion: remove deprecated --prune from git-gc”
  1. bash completion: remove deprecated --prune from git-gcMarkus Heidelberg, Dec 13, 2008
  2. Johannes SchindelinDec 14, 2008
  3. Jeff KingDec 14, 2008
  4. Johannes SchindelinDec 14, 2008
  5. Jeff KingDec 14, 2008
  6. Brandon CaseyDec 15, 2008
  7. Brandon CaseyDec 15, 2008
  8. Jakub NarebskiDec 14, 2008

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.