Skip to content

Commit

Permalink
Don't use -C in "git diff"
Browse files Browse the repository at this point in the history
Right now it confuses at least git-diff-files, since it leaves
all the files (whether changed or not) in the diff queue.
  • Loading branch information
Linus Torvalds committed Jun 17, 2005
1 parent c538d2d commit aeac668
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-diff-script
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ rev=($(git-rev-parse --revs-only "$@"))
flags=($(git-rev-parse --no-revs "$@"))
case "${#rev[*]}" in
0)
git-diff-files -p -C "$@";;
git-diff-files -p "$@";;
1)
git-diff-cache -p -C "$@";;
git-diff-cache -p "$@";;
2)
begin=$(echo "${rev[1]}" | tr -d '^')
end="${rev[0]}"
git-diff-tree -p -C $flags $begin $end;;
git-diff-tree -p $flags $begin $end;;
*)
echo "I don't understand"
exit 1;;
Expand Down

0 comments on commit aeac668

Please sign in to comment.