mirror of
https://github.com/git/git.git
synced 2024-11-05 08:47:56 +01:00
21746aa34f
svndump parses data that is in SVN dumpfile format produced by `svnadmin dump` with the help of line_buffer and uses repo_tree and fast_export to emit a git fast-import stream. Based roughly on com.hydrografix.svndump 0.92 from the SvnToCCase project at <http://svn2cc.sarovar.org/>, by Stefan Hegny and others. [rr: allow input from files other than stdin] [jn: with test, more error reporting] Signed-off-by: David Barr <david.barr@cordelta.com> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 lines
298 B
C
16 lines
298 B
C
/*
|
|
* This file is in the public domain.
|
|
* You may freely use, modify, distribute, and relicense it.
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include "svndump.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
svndump_init(NULL);
|
|
svndump_read((argc > 1) ? argv[1] : NULL);
|
|
svndump_deinit();
|
|
svndump_reset();
|
|
return 0;
|
|
}
|