summaryrefslogtreecommitdiff
path: root/builtin-check-ref-format.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-05-18 22:08:41 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-05-18 22:08:41 -0700
commit2c57ebc22329e11fc4843f62fe464a4e0c212176 (patch)
treed9618fa4497ae60fe5503bed0d673704eb2e1b48 /builtin-check-ref-format.c
parentMerge branch 'lt/dirwalk' into next (diff)
parentDocumentation/Makefile: create tarballs for the man pages and html files (diff)
downloadtgif-2c57ebc22329e11fc4843f62fe464a4e0c212176.tar.xz
Merge branch 'ts/doctar' into next
* 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 output
Diffstat (limited to 'builtin-check-ref-format.c')
-rw-r--r--builtin-check-ref-format.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/builtin-check-ref-format.c b/builtin-check-ref-format.c
new file mode 100644
index 0000000000..4a23936aff
--- /dev/null
+++ b/builtin-check-ref-format.c
@@ -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]);
+}