From: Jeff King Date: Fri, 08 Aug 2008 21:45:23 GMT Subject: Re: [PATCH 2/3] Teach git diff-tree --stdin to diff trees 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: > --stdin:: > When '--stdin' is specified, the command does not take > arguments from the command line. Instead, it > - reads either one or a list of > - separated with a single space from its standard input. > + reads lines containing either two , one , or a > + list of 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