diff options
author | Jeff King <peff@peff.net> | 2017-05-30 01:19:30 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-06-05 11:43:33 +0900 |
commit | d691551192ac845747694258ccae9ffeeb6bdd58 (patch) | |
tree | b5f794dac42c070dfb1c8e83b37e39ddd118a08a /t/t9115/funky-names.dump | |
parent | git: add hidden --list-builtins option (diff) | |
download | tgif-d691551192ac845747694258ccae9ffeeb6bdd58.tar.xz |
t0012: test "-h" with builtins
Since commit 99caeed05 (Let 'git <command> -h' show usage
without a git dir, 2009-11-09), the git wrapper handles "-h"
specially, skipping any repository setup but still calling
the builtin's cmd_foo() function. This means that every
cmd_foo() must be ready to handle this case, but we don't
have any systematic tests. This led to "git am -h" being
broken for some time without anybody noticing.
This patch just tests that "git foo -h" works for every
builtin, where we see a 129 exit code (the normal code for
our usage() helper), and that the word "usage" appears in
the output.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9115/funky-names.dump')
0 files changed, 0 insertions, 0 deletions