summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Linus Torvalds <torvalds@osdl.org>2006-01-25 17:02:10 -0500
committerLibravatar Junio C Hamano <junkio@cox.net>2006-01-25 14:44:55 -0800
commit73e5456ed3eced7a728f933e01c850c2992dbeed (patch)
treea7de9e024a7a8fa933ff91607ed8c50561f49c18
parentMake git-rev-list and git-rev-parse argument parsing stricter (diff)
downloadtgif-73e5456ed3eced7a728f933e01c850c2992dbeed.tar.xz
git-whatchanged: exit out early on errors
If we get an error parsing the arguments, exit. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-xgit-whatchanged.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-whatchanged.sh b/git-whatchanged.sh
index 80e2500e0e..d4f985b5eb 100755
--- a/git-whatchanged.sh
+++ b/git-whatchanged.sh
@@ -4,7 +4,7 @@ USAGE='[-p] [--max-count=<n>] [<since>..<limit>] [--pretty=<format>] [-m] [git-d
SUBDIRECTORY_OK='Yes'
. git-sh-setup
-diff_tree_flags=$(git-rev-parse --sq --no-revs --flags "$@")
+diff_tree_flags=$(git-rev-parse --sq --no-revs --flags "$@") || exit
test -z "$diff_tree_flags" &&
diff_tree_flags=$(git-repo-config --get whatchanged.difftree)
test -z "$diff_tree_flags" &&