For experminenters I’m looking at integrating this with git at the mo, looks OK so far but I’m still testing for corner cases, to integrate with git do the following :-
First replace the file ’passthru.class.php’ with the one attached to this post.
Then
1. Add the following to the end of $passthrudirs in the config.inc.php file
or whatever your last number in the array is. This sets up the git tracking directory as a passthru.
2. Mount your db as normal
3. Navigate to your db mountpount and your database named subdir, e.g ’evolution’
4. Type ’git init’. This creates the git tracking directory in your passthru area(unbeknown to git of course)
5. Type ’git status’. You should now see git telling you to add your subdirs, i.e. Chunks etc.
6. Add these using ’git add’ then change some content and just use git as you normally would to track it.
If you change the database, e.g a Resource say just do a ’git diff’ it sees the change automatically so you can commit it etc.
Taking the mountpoint up and down works OK.
This is easier than SVN as there is only one tracking directory, not one per subdir and timestamps are either not used or not as important.
Please experiment with this if you wish but I’ll push this out as soon as I can this week when I’ve done some more testing if its OK
You can in theory now share your DB content amongst users on GitHub!
<<EDIT>>OK, using it as a straight repo seems Ok, branching works, i.e you can roll back history to wherever you where on that particular branch but it only preserves content and title, not other attributes such as published etc, this is because we do a delete/create as part of the git wind back operation and lose these, this is fixable but a bit tricky.