Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: a48f5d7153761fabf0b04fdfd1667adf7eeeddbe authored by Junio C Hamano on 03 May 2009, 23:14:58 UTC
GIT 1.6.2.5
Tip revision: a48f5d7
builtin-check-ref-format.c
/*
 * 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, const char *prefix)
{
	if (argc != 2)
		usage("git check-ref-format refname");
	return !!check_ref_format(argv[1]);
}
back to top