Don't use -C in "git diff"
[git/git.git] / git-diff-script
CommitLineData
940c1bb0
LT
1#!/bin/sh
2rev=($(git-rev-parse --revs-only "$@"))
3flags=($(git-rev-parse --no-revs "$@"))
4case "${#rev[*]}" in
50)
aeac6681 6 git-diff-files -p "$@";;
940c1bb0 71)
aeac6681 8 git-diff-cache -p "$@";;
940c1bb0
LT
92)
10 begin=$(echo "${rev[1]}" | tr -d '^')
11 end="${rev[0]}"
aeac6681 12 git-diff-tree -p $flags $begin $end;;
940c1bb0
LT
13*)
14 echo "I don't understand"
15 exit 1;;
16esac