X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=builtin-check-ref-format.c;fp=builtin-check-ref-format.c;h=4a23936aff8c21ca42a1b1e460543b1c775ccb45;hb=9370bae2cef351617272aa142fbe4ce039833d13;hp=0000000000000000000000000000000000000000;hpb=5fb61b8dcfdf7bcec0793c071813e255d1803859;p=git.git diff --git a/builtin-check-ref-format.c b/builtin-check-ref-format.c new file mode 100644 index 00000000..4a23936a --- /dev/null +++ b/builtin-check-ref-format.c @@ -0,0 +1,14 @@ +/* + * GIT - The information manager from hell + */ + +#include "cache.h" +#include "refs.h" +#include "builtin.h" + +int cmd_check_ref_format(int argc, const char **argv, char **envp) +{ + if (argc != 2) + usage("git check-ref-format refname"); + return !!check_ref_format(argv[1]); +}