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:46 UTC
Message-ID
<7v62aksgkv.fsf@alter.siamese.dyndns.org>
In-Reply-To
<7vk3z0shri.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 18 quoted lines
> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
>
>> Junio C Hamano <gitster@pobox.com> writes:
>>
>>> Re-read the part you omitted with [...].  Doesn't it say something
>>> about "only available"?
>>
>> It does, but it seems you're trying hard to avoid telling the user "you
>> should use 'current'", where 'current' is the only reasonable option for
>> this user. I still don't understand what problem you're trying to solve.
>
> I am avoiding to say "you should use simple/current".  Choice
> between matching and simple/current is for the user to make (mostly
> dictated by the project's workflow) and we cannot make a suggestion
> better than what user knows.
>
> Choice between simple and current is mechanically derivable. If the
> user also uses older version of git, simple is not an option.

To put it another way, I am questioning your "where 'current is the only reasonable option for this user". If it were truly the case, why would we be issuing a warning message? Wouldn't we be instead silently doing what 'simple' or 'current' would do?

The reason why we have this message is because either "push the current one and not others" or "push all relevant ones, regardless of the current" are reasonable choices depending on the user, and because we had to choose one for the default, we previously chose the latter but we are changing our mind and will default to the other one, no?

Previous: Junio C HamanoNext: Matthieu Moy
Message 12 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.