Thread (8 messages) flat view 8 messages, 3 authors, 2016-06-15

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

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:07

Possibly related (same subject, not in this thread)

Karl Hasselström [off-list ref] writes:
quoted
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help