diff options
author | Junio C Hamano <gitster@pobox.com> | 2013-07-18 12:59:34 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-07-18 12:59:34 -0700 |
commit | b12aecda2cbdc7264ce969e28a351a78ea3cb77f (patch) | |
tree | d22055b405e10fccfd7a25448ae65de9e2e4cb7c /contrib/mw-to-git/bin-wrapper/git | |
parent | 73f4c9a104ada33a06d38767404a04bbd4f86672 (diff) | |
parent | 0078a7fa05b3d671739aefba5265da809ea32e55 (diff) | |
download | git-b12aecda2cbdc7264ce969e28a351a78ea3cb77f.tar.gz git-b12aecda2cbdc7264ce969e28a351a78ea3cb77f.tar.xz |
Merge branch 'bp/mediawiki-preview'
Add a command to allow previewing the contents locally before
pushing it out, when working with a MediaWiki remote.
I personally do not think this belongs to Git. If you are working
on a set of AsciiDoc source files, you sure do want to locally
format to preview what you will be pushing out, and if you are
working on a set of C or Java source files, you do want to test it
before pushing it out, too. That kind of thing belongs to your
build script, not to your SCM.
But I'll let it pass, as this is only a contrib/ thing.
* bp/mediawiki-preview:
git-remote-mediawiki: add preview subcommand into git mw
git-remote-mediawiki: add git-mw command
git-remote-mediawiki: factoring code between git-remote-mediawiki and Git::Mediawiki
git-remote-mediawiki: update tests to run with the new bin-wrapper
git-remote-mediawiki: add a git bin-wrapper for developement
wrap-for-bin: make bin-wrappers chainable
git-remote-mediawiki: introduction of Git::Mediawiki.pm
Diffstat (limited to 'contrib/mw-to-git/bin-wrapper/git')
-rwxr-xr-x | contrib/mw-to-git/bin-wrapper/git | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/contrib/mw-to-git/bin-wrapper/git b/contrib/mw-to-git/bin-wrapper/git new file mode 100755 index 000000000..6663ae57e --- /dev/null +++ b/contrib/mw-to-git/bin-wrapper/git @@ -0,0 +1,14 @@ +#!/bin/sh + +# git executable wrapper script for Git-Mediawiki to run tests without +# installing all the scripts and perl packages. + +GIT_ROOT_DIR=../../.. +GIT_EXEC_PATH=$(cd "$(dirname "$0")" && cd ${GIT_ROOT_DIR} && pwd) + +GITPERLLIB="$GIT_EXEC_PATH"'/contrib/mw-to-git'"${GITPERLLIB:+:$GITPERLLIB}" +PATH="$GIT_EXEC_PATH"'/contrib/mw-to-git:'"$PATH" + +export GITPERLLIB PATH + +exec "${GIT_EXEC_PATH}/bin-wrappers/git" "$@" |