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

Re: [BUG] git diff-tree --stdin doesn't accept two trees

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 6, 2008, 15:31 UTC
Message-ID
<7vbq06rwhq.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20080806115358.GD18336@diana.vm.bytemark.co.uk>
Karl Hasselström <kha@treskal.com> writes:
Show 11 quoted lines
>> The feature of --stdin to take a commit and its parents on one line was
>> broken before that to support the common
>>
>>         rev-list --parents $commits... -- $paths... |
>>                 diff-tree --stdin -v -p
>>
>> usage pattern by Porcelains.  For diff-tree to talk sensibly about
>> commits, it needs to see commits, not just trees.
>
> But is there any fundamental reason why it couldn't accept tree-ishes
> as well?

The -v option given to diff-tree is the key. Without it, it could take trees.

Previous: Karl Hasselström
Message 6 of 6 in “[BUG] git diff-tree --stdin doesn't accept two trees”
  1. Karl HasselströmAug 5, 2008
  2. Junio C HamanoAug 5, 2008
  3. fix diff-tree --stdin documentationJunio C Hamano, Aug 6, 2008
  4. Karl HasselströmAug 6, 2008
  5. Karl HasselströmAug 6, 2008
  6. Junio C HamanoAug 6, 2008

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.