On 24/06/12 02:55, Mark A. Hershberger wrote:
On 06/23/2012 06:56 PM, Tom Roche wrote:
OTOH, editing a GHW is a joy. A GHW is backed by
a git repo, so I can
interact with it "VC-style":
# whack away @ local files with my local editor
# commit to my local repo
# push to remote on github
# refresh my browser
I appreciate the first step -- that is why I use Emacs and mediawiki.el
(
https://launchpad.net/mediawiki-el). And the last step would be simple
to add.
Which leaves the middle two steps -- integrate MediaWiki with VCS somehow.
Given some of the things people have been doing with git, it seems like
this would be straight-forward -- kind of like post-commit hook.
Mark.
Not so much. MediaWiki expects more things than just the text.
If you are only editing mediawiki through git, then yes, it would be
easy: Add a post-commit hook in the git server which rans
maintenance/importTextFile.php of the modified files.
If there are also edits at MediaWiki side, then you'd also need an
extension which hooks mediawiki to convert edits to git commits.
However, you could replace git with a command line tool which performed
edits. No need to do so through a git transport.