Staging
v0.5.2
https://github.com/git/git
Revision 6ba78238a824282816944550edc4297dd2808a72 authored by 李鸿 on 16 December 2007, 04:53:26 UTC, committed by Junio C Hamano on 16 December 2007, 20:50:08 UTC
Signed-off-by: Li Hong <leehong@pku.edu.cn>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent bc8b95a
Raw File
Tip revision: 6ba78238a824282816944550edc4297dd2808a72 authored by 李鸿 on 16 December 2007, 04:53:26 UTC
Fix a memory leak
Tip revision: 6ba7823
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