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

Re: [PATCH] git-diff: don't add trailing blanks (i.e., do what GNU diff -u now does)

From
Junio C Hamano <junkio@cox.net>
Date
Dec 17, 2006, 20:09 UTC
Message-ID
<7vtzzu5lp1.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.64.0612171200290.3479@woody.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 9 quoted lines
> On Sun, 17 Dec 2006, Jim Meyering wrote:
>>
>> You may recall that GNU diff -u changed recently so that it no
>> longer outputs any trailing space unless the input data has it.
>
> I still consider that to be a bug in GNU "diff -u".
>
> We work around that bug when applying patches, but I don't think we should 
> replicate it.
Me neither.
Previous: Linus TorvaldsNext: Jim Meyering
Message 3 of 6 in “git-diff: don't add trailing blanks (i.e., do what GNU diff -u now does)”
  1. git-diff: don't add trailing blanks (i.e., do what GNU diff -u now does)Jim Meyering, Dec 17, 2006
  2. Linus TorvaldsDec 17, 2006
  3. Junio C HamanoDec 17, 2006
  4. Jim MeyeringDec 17, 2006
  5. Jakub NarebskiDec 17, 2006
  6. Johannes SchindelinDec 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.