Re: [PATCH 2/3] Teach git diff-tree --stdin to diff trees
- From
Jeff King <peff@peff.net>
- Date
- Aug 8, 2008, 21:45 UTC
- Message-ID
- <20080808214523.GA31424@sigill.intra.peff.net>
- In-Reply-To
- <20080808204829.7744.11661.stgit@yoghurt>
On Fri, Aug 08, 2008 at 10:48:29PM +0200, Karl Hasselström wrote:
Show 8 quoted lines
> --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