Revision 71931c19658bd99747ebbb93f0155384ba97df2c authored by Linus Torvalds on 15 July 2005, 21:57:09 UTC, committed by Linus Torvalds on 15 July 2005, 21:57:09 UTC
Fix 'git-var.txt' and use "-b xhtml11" instead of "-b css-embedded" to
make asciidoc 7.0.1 happy.
1 parent 3eb5128
Raw File
git-diff-script
#!/bin/sh
. git-sh-setup-script || die "Not a git archive"

rev=($(git-rev-parse --revs-only "$@"))
flags=($(git-rev-parse --no-revs --flags "$@"))
files=($(git-rev-parse --no-revs --no-flags "$@"))
case "${#rev[*]}" in
0)
	git-diff-files -M -p "$@";;
1)
	git-diff-cache -M -p "$@";;
2)
	begin=$(echo "${rev[1]}" | tr -d '^')
	end="${rev[0]}"
	git-diff-tree -M -p $flags $begin $end $files;;
*)
	echo "I don't understand"
	exit 1;;
esac
back to top