From: Junio C Hamano Date: Thu, 24 Jun 2010 20:09:09 GMT Subject: Re: [PATCH] git-cat-file.txt: Document --textconv Message-ID: <7vocf0chwa.fsf@alter.siamese.dyndns.org> In-Reply-To: <4C2355EF.7030604@drmicha.warpmail.net> Michael J Gruber writes: > Wait a minute: > > git show HEAD:path >a > git show :path >b > diff a b > > Oh no! We've been having this all along. This is bad but probably > unchangeable. There is nothing "bad" about this, unless you forgot about the index. The comparision target of "git diff" defaults to the index, not HEAD, if you want other precedents. If you kept telling others that "everything defaults to HEAD", it is indeed bad, but that can be fixed ;-). > I was going with the usage line, but you are right: : makes more > sense semantically and is clearer. >> >> What about this: >> >> --textconv:: >> Show the content as transformed by a textconv filter. In this >> case, has be of the form :, or : >> to run the filter on the file stored in the index. > > I'll be more mathematically stubborn about "file", see v2;) If you want to be mathematically stubborn, then I think you should prefer in a context like this, since : is the notation to reach to a inside the treeish. is merely one of the two possible manifestations of when it is accessed through the tree that immediately contains it (other being ). Most importantly, "cat-file blob " codepath has nothing to do with that "should this materialize as a or a ?" logic, so saying is doubly wrong in this context.