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

git diff - no newline after @@ ?

From
PSPetr Sebor <petr@scssoft.com>
Date
Aug 18, 2006, 12:10 UTC
Message-ID
<44E5AE42.6090506@scssoft.com>
Hello,

has anyone noticed that the 'git diff' output somehow lacks the newline after the @@ tag?

The linux-kernel list is full of diffs whose hunks begin like:
@@ -1475,6 +1475,7 @@ int do_coredump(long signr, int exit_cod

@@ -1516,22 +1517,34 @@ int do_coredump(long signr, int exit_cod

@@ -1428,7 +1442,7 @@ static int elf_core_dump(long signr, str

instead of:

@@ -1475,6 +1475,7 @@
 int do_coredump(long signr, int exit_cod

@@ -1516,22 +1517,34 @@
 int do_coredump(long signr, int exit_cod

@@ -1428,7 +1442,7 @@
 static int elf_core_dump(long signr, str


It is not only a problem of the linux-kernel, my local git installation 
suffers from this as well...

Regards
Petr
Next: Alex Riesen
Message 1 of 7 in “git diff - no newline after @@ ?”
  1. Petr SeborAug 18, 2006
  2. Alex RiesenAug 18, 2006
  3. Petr SeborAug 18, 2006
  4. Jakub NarebskiAug 18, 2006
  5. Jeff KingAug 18, 2006
  6. Petr SeborAug 18, 2006
  7. Jakub NarebskiAug 18, 2006

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.