X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/8a2296fa8564ab31a18403c871b2de4c8dedc9d3..0acb34369a829bfbab93ad0b66ab4e556c9c7764:/doc/rcs/git/discussion.mdwn diff --git a/doc/rcs/git/discussion.mdwn b/doc/rcs/git/discussion.mdwn index 3f8fcf992..57ec252d7 100644 --- a/doc/rcs/git/discussion.mdwn +++ b/doc/rcs/git/discussion.mdwn @@ -7,7 +7,7 @@ Otherwise, I hope migrating is just importing the svn repo to git and then setti ### Solution ### **Basis:** I only use ikiwiki as a wiki compiler. No cgi or anything. -I imported my svn repo into git with git-svnimport. I reconfigured ikiwiki to _not use any rcs_. In `ikiwiki.setup`, I have the git repository as srcdir, and a suitable dstdir. +I imported my svn repo into git with `git-svnimport`. I reconfigured ikiwiki to _not use any rcs_. In `ikiwiki.setup`, I have the git repository as srcdir, and a suitable dstdir. Then, in my git repository, I added this `post-commit` hook to refresh the wiki: @@ -15,14 +15,16 @@ Then, in my git repository, I added this `post-commit` hook to refresh the wiki: # to refresh when changes happen - #!/bin/sh - - # to refresh when changes happen - BASE="/path/to/base/dir" SETUPFILE="$BASE/ikiwiki.setup" UNDERLAYDIR="$BASE/underlay" ikiwiki --refresh --setup "$SETUPFILE" --underlaydir="$UNDERLAYDIR" --verbose -UlrikSverdrup \ No newline at end of file +Positives: + +* Containment: I only have the above `$BASE` directory to backup: it contains the srcdir and setup files. No external svn repository. This means that suddenly `git` and `ikiwiki` pair into a stand-alone self-contained wiki compiler kit. + +UlrikSverdrup (This is now crossposted to the above mentioned [website][ulrikweb]) + +[ulrikweb]: http://www.student.lu.se/~cif04usv/wiki/stuff/git.html \ No newline at end of file