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

Re: Possible bug in Git

From
Jay Soffian <jaysoffian@gmail.com>
Date
Apr 16, 2010, 00:38 UTC
Message-ID
<o2w76718491004151738zb2deaad1p3f7360a437725c4d@mail.gmail.com>
In-Reply-To
<k2n32541b131004151713s51498b01s34c5a95c0f360901@mail.gmail.com>
On Thu, Apr 15, 2010 at 8:13 PM, Avery Pennarun <apenwarr@gmail.com> wrote:
>  true >profile   # blank the file
>  git commit -a -m resolved
>  git show HEAD:profile
>   # no output
Well, I wouldn't expect output from show HEAD:profile. But this is odd::

$ git diff HEAD^1 --name-status M profile

$ git diff HEAD^2 --name-status M profile

$ git diff-tree HEAD --name-status <no output>

Hmfph. "git log -m -p -1" at least gives the diffs from each side.
j.
Previous: Avery PennarunNext: Avery Pennarun
Message 7 of 12 in “Possible bug in Git”
  1. David Martínez MartíApr 15, 2010
  2. combined diff: correctly handle truncated fileThomas Rast, Apr 15, 2010
  3. Avery PennarunApr 15, 2010
  4. Junio C HamanoApr 16, 2010
  5. Avery PennarunApr 16, 2010
  6. Avery PennarunApr 16, 2010
  7. Jay SoffianApr 16, 2010
  8. Avery PennarunApr 16, 2010
  9. Linus TorvaldsApr 16, 2010
  10. Thomas RastApr 16, 2010
  11. Junio C HamanoApr 16, 2010
  12. Thomas RastApr 16, 2010

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.