Skip to content

Commit

Permalink
git-whatchanged: exit out early on errors
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Linus Torvalds authored and Junio C Hamano committed Jan 25, 2006
1 parent d8f6b34 commit 73e5456
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-whatchanged.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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" &&
Expand Down

0 comments on commit 73e5456

Please sign in to comment.