From: Linus Torvalds Date: Mon, 02 May 2005 01:50:13 GMT Subject: Re: Complete http-pull; where should it go? Message-ID: In-Reply-To: <7vsm16qyia.fsf@assigned-by-dhcp.cox.net> On Sun, 1 May 2005, Junio C Hamano wrote: > > Shameless plug but could you take a look at how my JIT does it, > at , especially > scroll down to near the bottom "Syntax to naming a snapshot or a > commit" section? Hmm.. I actually implemented it, because it's simple to implement, but now that I've tried using it, I just find it to be too much like line noise to do git-diff-tree -p 0-HEAD HEAD for "parent to current". The notation "-HEAD" also works, but since that looks like a command line flag, it's usually not useful, except when combined with other stuff, ie "0---HEAD" is "three parents up". > I still think this kind of thing belongs to Porcelain not > Plumbing, though. I don't entirely disagree, and I suspect that Porcelain ends up using the pure hex numbers which are always unambiguous. That said, I end up still using the raw plumbing, so it's actually nice to have some simple shorthand. I just don't know if the parent thing ends up being all that useful. Anyway, it's there. I don't love the parent syntax, but on the other hand, I don't know how often I'd even end up using it (while the tag and HEAD names are _very_ useful), so maybe it just doesn't matter. Linus