difftool: exit(0) when usage is printed
commit283607694c1248a8e1ff4cda48aa5d1eb1287733
authorTim Henigan <tim.henigan@gmail.com>
Thu, 22 Mar 2012 19:52:18 +0000 (22 15:52 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Mar 2012 18:46:26 +0000 (23 11:46 -0700)
tree750855c35b84cbc13288c03fa43ff9ec7abd14cf
parent850896042a42c1c16912a3981ca844e2cbcd14d4
difftool: exit(0) when usage is printed

Prior to this commit, the script exited with an error whenever the
usage string was printed, regardless of the reason it was done. In
cases where usage was printed due to a user request (e.g. '-h'
option), the script should exit without error (exit 0).

This commit adds an argument to the usage function that allows the
exit code to be specified when the function is called.

Signed-off-by: Tim Henigan <tim.henigan@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-difftool.perl