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

Re: [PATCH] push: start warning upcoming default change for push.default

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 21, 2012, 17:00 UTC
Message-ID
<7vobocsipo.fsf@alter.siamese.dyndns.org>
In-Reply-To
<vpqd34su0io.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 15 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Perhaps we should say more to help people decide which one to choose
>> in this message.
> [...]
>>     You can squelch this message by picking your preferred default now,
>>     e.g. running one of these:
>>
>>             git config push.default matching
>>             git config push.default simple
>>             git config push.default current
>
> I don't see any added value. Seeing this, it's less clear to the user,
> and he may chose 'simple', and then complain that it breaks his older
> Git. 

Re-read the part you omitted with [...]. Doesn't it say something about "only available"?

> Really, if 'simple' isn't an option for someone, why should we make
> this someone think before chosing between 'current' an 'simple'?

This is not about choosing between simple and current when both are available. As [...] part tries to clearly state (and if it is unclear, please clarify it further), the new default "simple" is only available in certain versions, and 'current' is the closest approximation for other versions. So even though there are three choices, it is really about choosing between 'matching' (push all relevant and current branch does not matter) and 'simple/current' (push current branch only). We could make it like this:

	e.g. running one of these:
		git config push.default matching
		git config push.default simple (or current)

and it may make it clearer what choices are suggested. The only reason I made it three lines is "(or current)" would make it harder for people who want "current only" but runs older version of git in the same repository to cut and paste.

Previous: Matthieu MoyNext: Matthieu Moy
Message 9 of 15 in “What's cooking in git.git (Jun 2012, #05; Tue, 19)”
  1. Junio C HamanoJun 19, 2012
  2. push: start warning upcoming default change for push.defaultMatthieu Moy, Jun 20, 2012
  3. Junio C HamanoJun 20, 2012
  4. Matthieu MoyJun 20, 2012
  5. Junio C HamanoJun 20, 2012
  6. Matthieu MoyJun 20, 2012
  7. Junio C HamanoJun 20, 2012
  8. Matthieu MoyJun 21, 2012
  9. Junio C HamanoJun 21, 2012
  10. Matthieu MoyJun 21, 2012
  11. Junio C HamanoJun 21, 2012
  12. Junio C HamanoJun 21, 2012
  13. Matthieu MoyJun 22, 2012
  14. Junio C HamanoJun 22, 2012
  15. push: start warning upcoming default change for push.defaultMatthieu Moy, Jun 24, 2012

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.