#
# add_file "git_export.cc"
#
# add_file "git_export.hh"
#
# patch "Makefile.am"
# from [1ab9728d8620427079f5a020ddc7ec7a239c7c95]
# to [24b8eb6a058693b5909778e7c76a893a939558b3]
#
# patch "commands.cc"
# from [dacd4ad20f431be30aee75690b848633fcd25363]
# to [8e2b774d0b6fcfa59439870cff939977233e1dd0]
#
# patch "git_export.cc"
# from []
# to [3c98d7e055e8e68ff0360eddcae14936107dcba3]
#
# patch "git_export.hh"
# from []
# to [fd0758378a732917218f9885a46322bde6984b04]
#
========================================================================
--- Makefile.am 1ab9728d8620427079f5a020ddc7ec7a239c7c95
+++ Makefile.am 24b8eb6a058693b5909778e7c76a893a939558b3
@@ -30,6 +30,7 @@
lcs.cc lcs.hh \
rcs_import.cc rcs_import.hh \
git.cc git.hh \
+ git_export.cc git_export.hh \
revision.cc revision.hh \
change_set.cc change_set.hh \
mt_version.cc mt_version.hh \
========================================================================
--- commands.cc dacd4ad20f431be30aee75690b848633fcd25363
+++ commands.cc 8e2b774d0b6fcfa59439870cff939977233e1dd0
@@ -29,6 +29,7 @@
#include "diff_patch.hh"
#include "file_io.hh"
#include "git.hh"
+#include "git_export.hh"
#include "keys.hh"
#include "manifest.hh"
#include "netsync.hh"
@@ -3467,6 +3468,15 @@
import_git_repo(system_path(idx(args, 0)), app);
}
+CMD(git_export, "git", "GITREPO", "export from Monotone to given GIT repository",
+ OPT_BRANCH_NAME)
+{
+ if (args.size() != 1)
+ throw usage(name);
+
+ export_git_repo(system_path(idx(args, 0)), app);
+}
+
static void
log_certs(app_state & app, revision_id id, cert_name name,
string label, string separator,
========================================================================
--- git_export.cc
+++ git_export.cc 3c98d7e055e8e68ff0360eddcae14936107dcba3
@@ -0,0 +1,517 @@
+// -*- mode: C++; c-file-style: "gnu"; indent-tabs-mode: nil -*-
+// vim:sw=2:
+// Copyright (C) 2005 Petr Baudis
+// all rights reserved.
+// licensed to the public under the terms of the GNU GPL (>= 2)
+// see the file COPYING for details
+
+// Sponsored by Google's Summer of Code and SuSE
+
+#include
+#include
+#include
+#include
+#include
+#include