From: Jonathan Nieder Date: Mon, 9 Nov 2009 15:04:47 +0000 (-0600) Subject: check-ref-format: update usage string X-Git-Tag: v1.6.5.3~23 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6586b1f3465a93e908664ea24fa2f5ff47a587e3;p=git.git check-ref-format: update usage string 'git check-ref-format' has learned --branch and --print options since the usage string was last updated. Signed-off-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- diff --git a/builtin-check-ref-format.c b/builtin-check-ref-format.c index f9381e07e..96382e344 100644 --- a/builtin-check-ref-format.c +++ b/builtin-check-ref-format.c @@ -7,6 +7,10 @@ #include "builtin.h" #include "strbuf.h" +static const char builtin_check_ref_format_usage[] = +"git check-ref-format [--print] \n" +" or: git check-ref-format --branch "; + int cmd_check_ref_format(int argc, const char **argv, const char *prefix) { if (argc == 3 && !strcmp(argv[1], "--branch")) { @@ -18,6 +22,6 @@ int cmd_check_ref_format(int argc, const char **argv, const char *prefix) exit(0); } if (argc != 2) - usage("git check-ref-format refname"); + usage(builtin_check_ref_format_usage); return !!check_ref_format(argv[1]); }