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

Re: git diff - no newline after @@ ?

From
Jakub Narebski <jnareb@gmail.com>
Date
Aug 18, 2006, 13:42 UTC
Message-ID
<ec4g4v$m4v$1@sea.gmane.org>
In-Reply-To
<44E5BE60.5010901@scssoft.com>
Petr Sebor wrote:
Show 7 quoted lines
> Jeff King wrote:
>> Try diff -p to get a hunk comment.
>>
>> -Peff
>>   
> 
> Ouch.... got it. Is there a way to turn the comment generation off btw?

Other than GIT_DIFF_OPTS (although how to turn off present -p option), or GIT_EXTERNAL_DIFF (see git-diff-tree(1))?

Why do you want to turn it off? patch understands this format...
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Previous: Petr Sebor
Message 7 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.