Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Show usage string for 'git get-tar-commit-id -h'
[gitweb.git]
/
builtin-check-ref-format.c
diff --git
a/builtin-check-ref-format.c
b/builtin-check-ref-format.c
index e3e7bdf52f0b1f597e6cfd3affcf75f41f183d75..0a576afd0e51f166f46493d86f4a0914ed8a744b 100644
(file)
--- a/
builtin-check-ref-format.c
+++ b/
builtin-check-ref-format.c
@@
-31,6
+31,9
@@
static void collapse_slashes(char *dst, const char *src)
int cmd_check_ref_format(int argc, const char **argv, const char *prefix)
{
+ if (argc == 2 && !strcmp(argv[1], "-h"))
+ usage(builtin_check_ref_format_usage);
+
if (argc == 3 && !strcmp(argv[1], "--branch")) {
struct strbuf sb = STRBUF_INIT;