summaryrefslogtreecommitdiff
path: root/contrib/svn-fe/svn-fe.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2010-07-15 18:25:39 +0200
committerJunio C Hamano <gitster@pobox.com>2010-07-16 13:21:47 -0700
commite605164d1da51087882a468bcf3f5d36d3a9d4ba (patch)
treed9a3f306f7587730ab8cbfc353f7dff4b300839c /contrib/svn-fe/svn-fe.c
parent53b304224a561b5fd4ae35cedc0a978d91d4b1da (diff)
downloadgit-e605164d1da51087882a468bcf3f5d36d3a9d4ba.tar.gz
Add a sample user for the svndump library
The svn-fe tool takes a Subversion dump file as input and produces a fast-import stream as output. This can be useful as a low-level tool in building other importers, or for debugging the vcs-svn library. make svn-fe make svn-fe.1 to test. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/svn-fe/svn-fe.c')
-rw-r--r--contrib/svn-fe/svn-fe.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/svn-fe/svn-fe.c b/contrib/svn-fe/svn-fe.c
new file mode 100644
index 0000000000..43c4320cac
--- /dev/null
+++ b/contrib/svn-fe/svn-fe.c
@@ -0,0 +1,15 @@
+/*
+ * This file is in the public domain.
+ * You may freely use, modify, distribute, and relicense it.
+ */
+
+#include <stdlib.h>
+#include "vcs-svn/svndump.h"
+
+int main(int argc, char **argv)
+{
+ svndump_init(NULL);
+ svndump_read((argc > 1) ? argv[1] : NULL);
+ svndump_reset();
+ return 0;
+}