author | Jonathan Nieder <jrnieder@gmail.com> | |
Sun, 31 Oct 2010 07:35:49 +0000 (02:35 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 9 Nov 2010 23:00:10 +0000 (15:00 -0800) | ||
commit | 2b5ec018458bd32f554d4395231680235104d8d8 | |
tree | 30fa677d2958dfec360615442772bb42944ed789 | tree | snapshot |
parent | cae3aa79aaa62f414c38a44b3073767b1def3a6b | commit | diff |
t1502 (rev-parse --parseopt): test exit code from "-h"
rev-parse --parseopt exits with code 129 (usage error) when asked
to dump usage with -h on behalf of another command. Scripts can
take advantage of this to avoid trying to parse usage information
as though it were the regular output from some git command.
Noticed with an &&-chaining tester.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
rev-parse --parseopt exits with code 129 (usage error) when asked
to dump usage with -h on behalf of another command. Scripts can
take advantage of this to avoid trying to parse usage information
as though it were the regular output from some git command.
Noticed with an &&-chaining tester.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1502-rev-parse-parseopt.sh | diff | blob | history |