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

Re: [RFC/PATCH] fetch: make --prune configurable

From
John Keeping <john@keeping.me.uk>
Date
Jul 8, 2013, 19:01 UTC
Message-ID
<20130708190125.GX9161@serenity.lan>
In-Reply-To
<1373288217-20580-1-git-send-email-mschub@elegosoft.com>
On Mon, Jul 08, 2013 at 02:56:57PM +0200, Michael Schubert wrote:
Show 12 quoted lines
> $gmane/201715 brought up the idea to fetch --prune by default.
> Since --prune is a "potentially destructive operation" (Git doesn't
> keep reflogs for deleted references yet), we don't want to prune
> without users consent.
> 
> To accommodate users who want to either prune always or when fetching
> from a particular remote, add two new configuration variables
> "fetch.prune" and "remote.<name>.prune":
> 
>  - "fetch.prune" allows to enable prune for all fetch operations.
> 
>  - "remote.<name>.prune" allows to change the behaviour per remote.

Should this be "remote.<name>.pruneFetch"? I'd quite like to be able to configure --prune for git-push as well (I just haven't got around to actually doing anything about it yet...) and it might be better to be explicit in the remote.<name> section from the start.

I'm not sure it's necessary since we already have "remote" and "pushremote" so we could have "prune" and "pushprune" but perhaps it's worth considering.

Previous: Junio C HamanoNext: Jeff King
Message 4 of 5 in “fetch: make --prune configurable”
  1. fetch: make --prune configurableMichael Schubert, Jul 8, 2013
  2. Junio C HamanoJul 8, 2013
  3. Junio C HamanoJul 12, 2013
  4. John KeepingJul 8, 2013
  5. Jeff KingJul 9, 2013

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.