New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adjusted the configs and several functionality, add git importer and exporter #12
Conversation
…rdized data structure
…and then write to the history list
1.periodic pull and edit commits now uses independent timestamped directories as the working dir, and locks the git on processing; 2.use repoBase and dataBase instead of repoWorkDir that improves the flexibility of directory structure; 3.import meta now uses current time as author date 4.exporter now prints the current manipulation
Wow, thanks, great work. Are your changes compatible to the current version? |
There may be problems due to changes of default configs. To transfer the configs from the previous version (those came to my mind, may not be completed yet):
However, instead of 3 and 4, It's more recommended to use new dafult configs, discard the old repo, and import data to the new default repo data.git (importer.php --run is enough) if the wiki still have complete data. |
…tedly in large operation
… directly. Also fixed a potential fatal error with very large content.
lib/Git.php was totally discarded by this work. Though other improvements could be merged in. |
This is become messy and needs to much rework, so I closed it. The importing (to git) feature can now be better done via dokuwiki2git (original project and my fork with lots of improvements). The exporting feature is pending since it's not in such a hurry, though currently I think it would probably be done better via extending dokuwiki2git instead of gitbacked. There are still other features that could be contained in gitbacked. Here are some I'm thinking about:
How do you about them? |
sry for my late repsone: great ideas, contributions are always welcome
|
We now can use a new technique that directly writes This technique can be found at http://stackoverflow.com/questions/19616758/commit-to-git-with-a-different-path or some otherwhere. The main idea is a combination of |
is there any advantage over links? |
What do you mean by 'links'?
Additionally, a bare repo cannot hold any link. |
sounds very convincing |
I made a rather big change for this plugin, here's a simple list of features:
I've done most tests on my private server and it worked fine. Though further investigation and experiments would never be too much. :)
Below is a simple documentation about the importer and the exporter:
The importer imports all page and media revision into the git repo.
The exporter exports history records in the git repo into the DokuWiki data.
dokuwikiin the commit message. Commits with this command will have attics saved to the corresponding backup folder (attic.bak or media_attic.bak).dokuwikiin the commit message. Commits with this command will have entry in *.changes saved to the corresponding backup folder (meta.bak or media_meta.bak).