summaryrefslogtreecommitdiff
path: root/git-diff-script
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2005-08-16 22:30:46 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2005-08-16 22:30:46 -0700
commit6680153441de6fbba07868d5f54af74d31a3ff13 (patch)
tree200df64306c16fb12a5068092d92237ba33cd7b9 /git-diff-script
parentMerge with master changes. (diff)
parentTeach applymbox to keep the Subject: line. (diff)
downloadtgif-6680153441de6fbba07868d5f54af74d31a3ff13.tar.xz
Merge with master to get diff fixes.
Diffstat (limited to 'git-diff-script')
-rwxr-xr-xgit-diff-script4
1 files changed, 1 insertions, 3 deletions
diff --git a/git-diff-script b/git-diff-script
index 03ed555e77..926f594be4 100755
--- a/git-diff-script
+++ b/git-diff-script
@@ -1,7 +1,5 @@
#!/bin/sh
-. git-sh-setup-script || die "Not a git archive"
-
-rev=($(git-rev-parse --revs-only "$@"))
+rev=($(git-rev-parse --revs-only "$@")) || exit
flags=($(git-rev-parse --no-revs --flags "$@"))
files=($(git-rev-parse --no-revs --no-flags "$@"))
case "${#rev[*]}" in