Skip to content

Commit

Permalink
git-diff: use --cc instead of -p.
Browse files Browse the repository at this point in the history
The --cc output is much nicer when dealing with merges, so use
it by default.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Feb 6, 2006
1 parent 4abd896 commit df9892f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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' "*)
Expand Down

0 comments on commit df9892f

Please sign in to comment.