Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
more D/F conflict tests
[gitweb.git]
/
builtin-check-ref-format.c
diff --git
a/builtin-check-ref-format.c
b/builtin-check-ref-format.c
index 513f13463844388699334da00d13c5f8dd90b286..b106c65d80dfc8fe794d46e34ea1ff78b04f3056 100644
(file)
--- a/
builtin-check-ref-format.c
+++ b/
builtin-check-ref-format.c
@@
-35,6
+35,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;