Browse Source
* ts/doctar: Documentation/Makefile: create tarballs for the man pages and html files SubmittingPatches: The download location of External Editor has moved Make git-check-format-ref a builtin. Make "git rev-list" be a builtin builtin-diff: do not say files are renamed when blob and file are given Provide a way to flush git-diff-tree's outputmaint
Junio C Hamano
19 years ago
10 changed files with 59 additions and 30 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