/GitFileProvider

GitFileProvider for JSPWiki

Primary LanguageJavaApache License 2.0Apache-2.0

GitFileProvider

This is a JSPWiki [http://jspwiki.apache.org/] PageProvider that uses Git for its page and attachment history.

It is based on JGit [https://eclipse.org/jgit/].

It works by committing after every page save.

Right now, it is not very performant, as JSPWiki starts counting versions with the oldest, so you have to got back Gits commit history to find out how many versions there are.

Config:

jspwiki.pageProvider = de.jwi.jspwiki.git.GitFileProvider
jspwiki.attachmentProvider = de.jwi.jspwiki.git.GitAttachmentProvider

jspwiki.fileSystemProvider.pageDir = /JSPWiki/wp
jspwiki.gitAttachmentProvider.storageDir = /JSPWiki/wa