Re: [PATCH] annotate: Support annotation of files on other revisions.
- From
Junio C Hamano <junkio@cox.net>
- Date
- Mar 6, 2006, 06:16 UTC
- Message-ID
- <7vpsl0ayij.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <20060306055036.GB26820@spearce.org>
Shawn Pearce <spearce@spearce.org> writes:
Show 7 quoted lines
> git-diff Makefile > git-diff HEAD Makefile > > ? (Which is rather ugly as what if you have a tracked file actually > called HEAD and you want the first form when the commit-ish is > omitted.) So accepting an optional commit-ish before the filename > would be in line with what git-diff accepts today.
The use of "start of filelist" marker "--" is optional when unambiguous, and that is why "git-diff Makefile" works. To view the change you still haven't update-index'ed to the path called "HEAD", you would naturally say "git-diff -- HEAD"