blob: fe04be77a9312c11fa054897c5982fa6c74b8e5e [file] [log] [blame]
Lukas Sandström9370bae2006-05-18 14:15:55 +02001/*
2 * GIT - The information manager from hell
3 */
4
5#include "cache.h"
6#include "refs.h"
7#include "builtin.h"
8
Linus Torvaldsa633fca2006-07-28 22:44:25 -07009int cmd_check_ref_format(int argc, const char **argv, const char *prefix)
Lukas Sandström9370bae2006-05-18 14:15:55 +020010{
11 if (argc != 2)
Junio C Hamanocba05fa2006-08-03 21:55:41 -070012 usage("git-check-ref-format refname");
Lukas Sandström9370bae2006-05-18 14:15:55 +020013 return !!check_ref_format(argv[1]);
14}