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

Re: [PATCH v5 6/6] status: add missing blank line after list of "other" files

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 6, 2013, 18:56 UTC
Message-ID
<xmqqzjrpwzh7.fsf@gitster.dls.corp.google.com>
In-Reply-To
<vpqmwnprdpy.fsf@anie.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 13 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Matthieu Moy <Matthieu.Moy@imag.fr> writes:
>>
>>> List of files in other sections ("Changes to be committed", ...) end with
>>> a blank line.
>>
>> It is not like we want to add a blank line at the end of each
>> element; it is rather that we want to have a blank line between each
>> element, so that they can have a bit of breathing room between them.
>
> Well, "between each element, and at the end of the output" sounds a lot
> like "after each element" ;-).
There is a difference between terminator and separator semantics.

LF is a line terminator; it is attached to the end of each line, it does not come between each pair of adjacent lines. Hence a text file ends with a LF.

A blank line that separates each C function in our sources is a separator. That is why a patch that does

	@@ -99,3 +99,8 @@ int false(void)
	 {
	 	return 0;
	 }
	+
	+int true(void)
        +{
        +	return 1;
	+}
does not add a trailing blank line at the end.

And I am saying that the blank lines in "status" output should be separators, not terminators of sections.

But see the other message.
Previous: Matthieu Moy
Message 12 of 12 in “Disable "git status" comment prefix”
  1. 0/6 Disable "git status" comment prefixMatthieu Moy, Sep 6, 2013
  2. 1/6 builtin/stripspace.c: fix broken indentationMatthieu Moy, Sep 6, 2013
  3. 2/6 wt-status: use argv_array APIMatthieu Moy, Sep 6, 2013
  4. 3/6 submodule summary: ignore --for-status optionMatthieu Moy, Sep 6, 2013
  5. 4/6 status: disable display of '#' comment prefix by defaultMatthieu Moy, Sep 6, 2013
  6. 5/6 tests: don't set status.displayCommentPrefix file-wideMatthieu Moy, Sep 6, 2013
  7. 6/6 status: add missing blank line after list of "other" filesMatthieu Moy, Sep 6, 2013
  8. Junio C HamanoSep 6, 2013
  9. Junio C HamanoSep 6, 2013
  10. Jeff KingSep 6, 2013
  11. Matthieu MoySep 6, 2013
  12. Junio C HamanoSep 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.