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

Re: git diff bug?

From
Jeff King <peff@peff.net>
Date
Apr 4, 2009, 01:52 UTC
Message-ID
<20090404015242.GA13932@coredump.intra.peff.net>
In-Reply-To
<20090404014527.GA13350@coredump.intra.peff.net>
On Fri, Apr 03, 2009 at 09:45:27PM -0400, Jeff King wrote:
> This is as designed. The original file ("git show e7dd7db") contains (my
> numbering seems different than what git produces; it is produced by "nl"
> which is maybe treating some line endings differently earlier in the
> file):

Sorry, this was just me failing to use "nl" correctly. I needed to use "-ba" to number empty lines. So the line numbers do match git, and the rest of my explanation holds.

-Peff
Previous: Jeff KingNext: David Abrahams
Message 3 of 13 in “git diff bug?”
  1. David AbrahamsApr 4, 2009
  2. Jeff KingApr 4, 2009
  3. Jeff KingApr 4, 2009
  4. David AbrahamsApr 6, 2009
  5. Michael J GruberApr 6, 2009
  6. David AbrahamsApr 6, 2009
  7. Jeff KingApr 6, 2009
  8. Jeff KingApr 6, 2009
  9. Matthieu MoyApr 6, 2009
  10. Junio C HamanoApr 6, 2009
  11. Matthieu MoyApr 6, 2009
  12. David AbrahamsApr 6, 2009
  13. Antriksh PanyApr 7, 2009

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.