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

Re: Possible bug in Git

From
Avery Pennarun <apenwarr@gmail.com>
Date
Apr 16, 2010, 00:45 UTC
Message-ID
<u2t32541b131004151745k5284b05egfcbbd29d69bd9d94@mail.gmail.com>
In-Reply-To
<o2w76718491004151738zb2deaad1p3f7360a437725c4d@mail.gmail.com>
On Thu, Apr 15, 2010 at 8:38 PM, Jay Soffian <jaysoffian@gmail.com> wrote:
Show 18 quoted lines
> 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.

Whoops, actually I meant "git show HEAD profile". Totally different, of course. But it doesn't produce output either :)

Have fun,
Avery
Previous: Jay SoffianNext: Linus Torvalds
Message 8 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.