]> git.ipfire.org Git - thirdparty/git.git/blame - git-diff-script
[PATCH] Updates for cvs-migration.txt
[thirdparty/git.git] / git-diff-script
CommitLineData
940c1bb0 1#!/bin/sh
d1918a72
LT
2. git-sh-setup-script || die "Not a git archive"
3
940c1bb0 4rev=($(git-rev-parse --revs-only "$@"))
9e9824ba
LT
5flags=($(git-rev-parse --no-revs --flags "$@"))
6files=($(git-rev-parse --no-revs --no-flags "$@"))
940c1bb0
LT
7case "${#rev[*]}" in
80)
753fd784 9 git-diff-files -M -p "$@";;
940c1bb0 101)
753fd784 11 git-diff-cache -M -p "$@";;
940c1bb0
LT
122)
13 begin=$(echo "${rev[1]}" | tr -d '^')
14 end="${rev[0]}"
9e9824ba 15 git-diff-tree -M -p $flags $begin $end $files;;
940c1bb0
LT
16*)
17 echo "I don't understand"
18 exit 1;;
19esac