From: Junio C Hamano Date: Mon, 02 May 2005 02:03:28 GMT Subject: Re: Complete http-pull; where should it go? Message-ID: <7v4qdmqt8v.fsf@assigned-by-dhcp.cox.net> In-Reply-To: >>>>> "LT" == Linus Torvalds writes: LT> Hmm.. I actually implemented it, because it's simple to LT> implement, but now that I've tried using it, I just find it LT> to be too much like line noise to do LT> git-diff-tree -p 0-HEAD HEAD LT> for "parent to current". The notation "-HEAD" also works, LT> but since that looks like a command line flag, it's usually LT> not useful, except when combined with other stuff, ie LT> "0---HEAD" is "three parents up". That's why I said I do not think this belongs to the Plumbing. JIT command-line would do just "jit-diff" to get the diff between the work tree and the commit (or snapshot) it is based upon, without parameter. Fully spelled out, it would be "jit-diff -1:1". This kind of syntax, although is quite useful in JIT context (e.g. saying "jit-patch --2" to mean "apply changes between snnapshot 2 and two parents up of it to my current work tree"), I tend to agree that it is a bit too weird for the core Plumbing layer, for which Unixy syntax is more suitable.