On Thu, Jun 09, 2011 at 03:15:59PM +0200, Jeremie Nikaes wrote: > Partial cloning is supported using the following syntax : > "git clone mediawiki::http://wikiurl##A_Page##Another_Page" > As always, this url is kept in .git/config, helping to always keep > track of these specific pages Earlier today I posted a 10-patch series to allow git to handle something like: git clone \ -c mediawiki.page=GitWorkflows \ -c mediawiki.page=Tig \ https://git.wiki.kernel.org and set that config into the .git/config file. The patch for the mediawiki helper to actually read and use it (instead of the "##" syntax in the url) is just: --- diff --git a/contrib/mw-to-git/git-remote-mediawiki b/contrib/mw-to-git/git-remote-mediawiki index fd26f87..75c3537 100755 --- a/contrib/mw-to-git/git-remote-mediawiki +++ b/contrib/mw-to-git/git-remote-mediawiki @@ -11,10 +11,9 @@ use warnings; my $slash_replacement = "%2F"; my $remotename = $ARGV[0]; -# Current syntax to fetch only a set of pages mediawiki::http://mediawikiurl##A_Page##Another_Page -my @pages_titles = split(/##/,$ARGV[1]); -my $url = shift (@pages_titles); - +my $url = $ARGV[1]; +my @pages_titles = `git config --get-all mediawiki.page`; +chomp @pages_titles; # commands parser my $entry; -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html