trivial: O_EXCL makes O_TRUNC redundant
[git/jnareb-git/bp-gitweb.git] / check-ref-format.c
bloba0adb3dcb345a380e1b6f2208feff4f61499e0d3
1 /*
2 * GIT - The information manager from hell
3 */
5 #include "cache.h"
6 #include "refs.h"
8 #include <stdio.h>
10 int main(int ac, char **av)
12 if (ac != 2)
13 usage("git-check-ref-format refname");
14 if (check_ref_format(av[1]))
15 exit(1);
16 return 0;