diff-files: -1/-2/-3 to diff against unmerged stage.
authorLinus Torvalds <torvalds@osdl.org>
Wed, 30 Nov 2005 05:06:10 +0000 (21:06 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 30 Nov 2005 08:14:18 +0000 (00:14 -0800)
commit10637b84d91cf8870d1db8609a10dc5e58722378
tree3c9caf478abc60cb208e557ce0923505b28cb3cb
parent562051809589574576971c53c23aad93f8c395d9
diff-files: -1/-2/-3 to diff against unmerged stage.

While resolving conflicted merge, it was not easy to compare the
working tree file with unmerged index entries.  This commit
introduces new options -1/-2/-3 (with synonyms --base, --ours,
and --theirs) to compare working tree files with specified
stages.

When none of these options are given, the command defaults to -2
if the index file is unmerged, otherwise it acts as before.

[jc: majorly butchered from the version Linus originally posted.]

Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-diff-files.txt
diff-files.c