Browse Source
Signed-off-by: Lukas Sandström <lukass@etek.chalmers.se> Signed-off-by: Junio C Hamano <junkio@cox.net>maint


5 changed files with 19 additions and 20 deletions
@ -0,0 +1,14 @@
@@ -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]); |
||||
} |
@ -1,17 +0,0 @@
@@ -1,17 +0,0 @@
|
||||
/* |
||||
* GIT - The information manager from hell |
||||
*/ |
||||
|
||||
#include "cache.h" |
||||
#include "refs.h" |
||||
|
||||
#include <stdio.h> |
||||
|
||||
int main(int ac, char **av) |
||||
{ |
||||
if (ac != 2) |
||||
usage("git-check-ref-format refname"); |
||||
if (check_ref_format(av[1])) |
||||
exit(1); |
||||
return 0; |
||||
} |
Loading…
Reference in new issue