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

Re: [PATCH v4 0/5] Disable "git status" comment prefix

From
Jeff King <peff@peff.net>
Date
Sep 6, 2013, 21:55 UTC
Message-ID
<20130906215509.GA13319@sigill.intra.peff.net>
In-Reply-To
<vpq38phsvuc.fsf@anie.imag.fr>
On Fri, Sep 06, 2013 at 07:28:43PM +0200, Matthieu Moy wrote:
Show 11 quoted lines
> >> FWIW, I had the same thought as Junio. I much prefer something like
> >> status.displayCommentPrefix for clarity and future-proofing.
> >
> > Sounds fine, but I don't understand why we'd want this to be an option
> > with a future in the first place.  Why not just fix the remaining bugs
> > before merging to master and make it unconditional?
> 
> I think some old-time users may appreciate to have a
> backward-compatibility option. It doesn't cost much for us, as we need
> the variable internally (to use the prefix in COMMIT_EDITMSG, and not on
> stdout), and it actually makes it easier to test.

Exactly. I kind of prefer the old output, though it is probably just having my brain rotted from seeing it so much. I'm going to give the new behavior a try for a while to see if I adjust, but ultimately I'd like to have the escape hatch. And as you say, it doesn't cost much, since we have to keep both code paths anyway.

Show 6 quoted lines
> I won't change the header part in this topic (no time, sorry), but the
> missing newline before "nothing added" actually sounds like a bug, as
> there is normally a newline after each list of file in `git status`,
> except untracked and ignored.
> 
> I'll fix it as a separate patch in the next round.
Thanks for looking into it.
-Peff
Previous: Matthieu Moy
Message 17 of 17 in “Disable "git status" comment prefix”
  1. 0/5 Disable "git status" comment prefixMatthieu Moy, Sep 5, 2013
  2. 1/5 builtin/stripspace.c: fix broken indentationMatthieu Moy, Sep 5, 2013
  3. 2/5 wt-status: use argv_array APIMatthieu Moy, Sep 5, 2013
  4. 3/5 submodule summary: ignore --for-status optionMatthieu Moy, Sep 5, 2013
  5. 4/5 status: disable display of '#' comment prefix by defaultMatthieu Moy, Sep 5, 2013
  6. 5/5 tests: don't set status.oldStyle file-wideMatthieu Moy, Sep 5, 2013
  7. Matthieu MoySep 5, 2013
  8. Junio C HamanoSep 5, 2013
  9. Matthieu MoySep 5, 2013
  10. Junio C HamanoSep 5, 2013
  11. Jeff KingSep 5, 2013
  12. Matthieu MoySep 6, 2013
  13. Jonathan NiederSep 6, 2013
  14. Matthieu MoySep 6, 2013
  15. Junio C HamanoSep 6, 2013
  16. Matthieu MoySep 6, 2013
  17. Jeff KingSep 6, 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.