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

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

From
Jeff King <peff@peff.net>
Date
Dec 14, 2008, 11:19 UTC
Message-ID
<20081214111939.GC6499@coredump.intra.peff.net>
In-Reply-To
<alpine.DEB.1.00.0812141216120.2014@eeepc-johanness>
On Sun, Dec 14, 2008 at 12:17:07PM +0100, Johannes Schindelin wrote:
Show 8 quoted lines
> > 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.
> 
> Oops.
> 
> But I thought that git gc --prune does expire _all_ dangling loose 
> objects _now_, not with --expire 2.weeks.ago.
Nope, see 25ee973. You explicitly wrote:
      Note that this new behaviour makes "--prune" be a no-op.

That being said, I think that is perhaps a reasonable thing for --prune to do (and I don't think there is any conflict with the name, because that is what it _used_ to do before becoming a no-op). But nobody has actually implemented it.

-Peff
Previous: Johannes SchindelinNext: Brandon Casey
Message 5 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.