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 20, 2012, 17:55 UTC
Message-ID
<7vehp9x3yz.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1340195750-846-1-git-send-email-Matthieu.Moy@imag.fr>
Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 23 quoted lines
> In preparation for flipping the default to the "simple" mode from
> the "matching" mode that is the historical default, start warning
> users when they rely on unconfigured "git push" to default to the
> "matching" mode.
>
> Also, advertise for 'simple' where 'current' and 'upstream' are advised.
>
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
> ---
>> * mm/push-default-switch-warning (2012-06-06) 1 commit
>>  - push: start warning upcoming default change for push.default
>> 
>> Will merge to 'next'.
>> 
>> Hopwefully we can have a solidly tested series early in 1.7.12 or
>> 1.7.13 at the latest.
>
> I've made a slightly modified version of the patch which adds these
> two lines:
>
> +   "(the 'simple' mode was introduced in Git 1.7.11. Use 'current' instead if\n"
> +   "you sometimes use older versions of Git)");

I am not sure who this wants to help. For people who want to anticipate the future, using anything but 'simple' is not living in the future and waiting for an additional pain coming from the differences between current and simple. If current and simple are similar enough that their differences do not matter, why wait for simple to be available everywhere and switch the default to it, instead of using current as the default in the first place?

So if anything, I'd prefer the above message without "Use 'current' instead" bit.

Previous: Matthieu MoyNext: Matthieu Moy
Message 3 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.