Browse Source

git-diff: use --cc instead of -p.

The --cc output is much nicer when dealing with merges, so use
it by default.

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 19 years ago
parent
commit
df9892ffce
  1. 4
      git-diff.sh

4
git-diff.sh

@ -22,13 +22,13 @@ case "$rev" in @@ -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' "*)

Loading…
Cancel
Save