]> git.ipfire.org Git - thirdparty/git.git/commit - diff.c
[PATCH] Make diff-cache and friends output more cg-patch friendly.
authorJunio C Hamano <junkio@cox.net>
Thu, 28 Apr 2005 15:04:39 +0000 (08:04 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 28 Apr 2005 15:04:39 +0000 (08:04 -0700)
commit2f97813870c73a89b673ea7882f2a078d25c2dcd
treea5d7e40207ee2bd713a15d5bc839168139055f5e
parentd5e276884a0780c61d4306f1527047f6c4180ab2
[PATCH] Make diff-cache and friends output more cg-patch friendly.

This changes the way the default arguments to diff are built when
diff-cache and friends are invoked with -p and there is no
GIT_EXTERNAL_DIFF environment variable.  It attempts to be more cg-patch
friendly by:

 - Showing diffs against /dev/null to denote added or removed
   files;

 - Showing file modes for existing files as a comment after the
   diff label.

Unfortunately with this change GIT_DIFF_CMD customization cannot
be supported easily anymore, so it has been dropped.
GIT_DIFF_OPTS customization to change diffs from unified to
context is still there, though.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
diff.c