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

Re: [PATCH v2] New config push.default to decide default behavior for push

From
Finn Arne Gangstad <finnag@pvv.org>
Date
Mar 16, 2009, 15:56 UTC
Message-ID
<20090316155629.GA17526@pvv.org>
In-Reply-To
<7viqmayslg.fsf@gitster.siamese.dyndns.org>
On Sun, Mar 15, 2009 at 09:55:23PM -0700, Junio C Hamano wrote:
Show 6 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
> 
> As some people still seem to object to the change of default (and that
> includes 20-30% of myself), we may end up deciding not to switch the
> default after all, but even in that case, applying the first half would
> benefit people who would want different behaviour.

I think the suggested new default is a lot safer then the current one. A default of "nothing" will print a nice message if you end up pushing nothing, which you will fix in a heartbeat with a single git config command.

If you erroneously push one or more branches however, cleanup might end up being very complicated. Many pushable repos are set up with disallowing non-fast-forward pushes, so it may require intervention by someone else to clean up, and by then someone else have already fetched the bad push.

- Finn Arne
Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 7 in “New config push.default to decide default behavior for push”
  1. New config push.default to decide default behavior for pushFinn Arne Gangstad, Mar 11, 2009
  2. Junio C HamanoMar 12, 2009
  3. Finn Arne GangstadMar 12, 2009
  4. Junio C HamanoMar 14, 2009
  5. Junio C HamanoMar 16, 2009
  6. Finn Arne GangstadMar 16, 2009
  7. Junio C HamanoMar 16, 2009

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.