path: root/contrib/mw-to-git/Git
diff options
authorBenoit Person <>2013-07-04 20:38:54 (GMT)
committerJunio C Hamano <>2013-07-08 15:55:21 (GMT)
commite19189060fcfb62410ce8e008720dbb6e7fa0d7b (patch)
tree97beb449147043b155c19fd697f25a6e3a8a6571 /contrib/mw-to-git/Git
parent9832cb9d4dc969fbfacfd1f8940fcbdec18bb930 (diff)
git-remote-mediawiki: introduction of
We would want to allow the user to preview what he has edited locally before pushing it out (and thus creating a non-removable revision in the mediawiki's history). This patch introduces a new perl package in which we will be able to share code between that new tool and the remote helper: git-remote-mediawiki.perl. A perl package offers the best way to handle such case: Each script can select what should be imported in its namespace. The package namespacing limits the use of side effects in the shared code. An alternate solution is to concatenate a "toolset" file with each *.perl when 'make'-ing the project. In that scheme, everything is imported in the script's namespace. Plus, files should be renamed in order to chain to Git's toplevel makefile. Hence, this solution is not acceptable. Signed-off-by: Benoit Person <> Signed-off-by: Matthieu Moy <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'contrib/mw-to-git/Git')
1 files changed, 24 insertions, 0 deletions
diff --git a/contrib/mw-to-git/Git/ b/contrib/mw-to-git/Git/
new file mode 100644
index 0000000..805f42a
--- /dev/null
+++ b/contrib/mw-to-git/Git/
@@ -0,0 +1,24 @@
+package Git::Mediawiki;
+use 5.008;
+use strict;
+use Git;
+# Totally unstable API.
+$VERSION = '0.01';
+require Exporter;
+@ISA = qw(Exporter);
+@EXPORT = ();
+# Methods which can be called as standalone functions as well:
+@EXPORT_OK = ();
+1; # Famous last words