From 73e5456ed3eced7a728f933e01c850c2992dbeed Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 25 Jan 2006 17:02:10 -0500 Subject: [PATCH] git-whatchanged: exit out early on errors If we get an error parsing the arguments, exit. Signed-off-by: Linus Torvalds Signed-off-by: Junio C Hamano --- git-whatchanged.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-whatchanged.sh b/git-whatchanged.sh index 80e2500e0..d4f985b5e 100755 --- a/git-whatchanged.sh +++ b/git-whatchanged.sh @@ -4,7 +4,7 @@ USAGE='[-p] [--max-count=] [..] [--pretty=] [-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" && -- 2.30.2