Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
[PATCH] git-branch: avoid getting confused by empty or nonexisting branches.
[gitweb.git]
/
git-diff-script
diff --git
a/git-diff-script
b/git-diff-script
index 020816bbf0581ec562f11d92a8b4f8bacb40cca6..03ed555e777b6dfeac8811338986eb752418ab72 100755
(executable)
--- a/
git-diff-script
+++ b/
git-diff-script
@@
-1,4
+1,6
@@
#!/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 "$@"))