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

Re: [PATCH 2/3] Teach git diff-tree --stdin to diff trees

From: Jeff King <hidden>
Date: 2016-06-15 22:45:07

Possibly related (same subject, not in this thread)

On Fri, Aug 08, 2008 at 10:48:29PM +0200, Karl Hasselström wrote:
 --stdin::
 	When '--stdin' is specified, the command does not take
 	<tree-ish> arguments from the command line.  Instead, it
-	reads either one <commit> or a list of <commit>
-	separated with a single space from its standard input.
+	reads lines containing either two <tree>, one <commit>, or a
+	list of <commit> from its standard input.  (Use a single space
+	as separator.)
Hmm. Just looking at this as a git user, I would have expected it to
take one or more hashes, separated by spaces. If only one, then it must
be a commit, and it is diffed against its parents. If more than one,
then each must be a tree-ish. So you could diff a commit against a tree
(or a tag against a commit, or...).

And I think it might even be easier to code. ;)

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help