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

Re: [RFC] Disabling status hints in COMMIT_EDITMSG

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 11, 2013, 17:40 UTC
Message-ID
<vpqfvtb5k9y.fsf@anie.imag.fr>
In-Reply-To
<xmqqob7ztgpb.fsf@gitster.dls.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 20 quoted lines
> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
>
>> Junio C Hamano <gitster@pobox.com> writes:
>>
>>> But at the same time, I feel that these redundant lines, especially
>>> the latter one, would give the users a stronger cue than just saying
>>> that "bar is Untracked"; "do X to include" reminds that bar will not
>>> be included if nothing is done.
>>
>> The one which draw my attention was "(use "git commit" to conclude
>> merge)" which is particularly counter-productive when you are already
>> doing a "git commit".
>
> Oh, no question about that.  Nobody would object to the removal of
> that one; it is clearly nonsense.
>
> I was commented on the value of keeping "hints" like this:
>
>       # Untracked files:
>       #   (use "git add <file>..." to include in what will be committed)
Yes, I understood your argument.

I have no strong opinion on whether they should be removed either, but I went for the removal essentially because it keeps the code simple.

If we want to keep the advices, and if we want them to be really sound, then for example the advice for "Changes to be committed:" should be changed when running "git commit --amend" (we currently hint "git reset" even for files which are not in the index in this case). Same for --only/--include. So, giving accurate hints in all cases seems non-trivial.

I think the value of these messages is smaller than the potential confusion and/or the code complexity to select and possibly modify the hints.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Junio C HamanoNext: Jonathan Nieder
Message 12 of 13 in “[RFC] Disabling status hints in COMMIT_EDITMSG”
  1. Matthieu MoySep 10, 2013
  2. Chris PackhamSep 10, 2013
  3. Matthieu MoySep 10, 2013
  4. Chris PackhamSep 10, 2013
  5. Junio C HamanoSep 10, 2013
  6. Matthieu MoySep 11, 2013
  7. Javier DomingoSep 11, 2013
  8. Matthieu MoySep 11, 2013
  9. John SzakmeisterSep 11, 2013
  10. Javier DomingoSep 11, 2013
  11. Junio C HamanoSep 11, 2013
  12. Matthieu MoySep 11, 2013
  13. Jonathan NiederSep 10, 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.