git-diff: use --cc instead of -p.
authorJunio C Hamano <junkio@cox.net>
Mon, 6 Feb 2006 00:37:18 +0000 (16:37 -0800)
committerJunio C Hamano <junkio@cox.net>
Mon, 6 Feb 2006 00:37:18 +0000 (16:37 -0800)
The --cc output is much nicer when dealing with merges, so use
it by default.

Signed-off-by: Junio C Hamano <junkio@cox.net>
git-diff.sh

index 4812ae4..b7792a2 100755 (executable)
@@ -22,13 +22,13 @@ case "$rev" in
        esac
 esac
 
-# If we do not have --name-status, --name-only nor -r, default to -p.
+# If we do not have --name-status, --name-only nor -r, default to --cc.
 # If we do not have -B nor -C, default to -M.
 case " $flags " in
 *" '--name-status' "* | *" '--name-only' "* | *" '-r' "* )
        ;;
 *)
-       flags="$flags'-p' " ;;
+       flags="$flags'--cc' " ;;
 esac
 case " $flags " in
 *" '-"[BCM]* | *" '--find-copies-harder' "*)