Elektra
0.8.21
|
gitresolver is a resolver that fetches from a local git repository during the get-phase and commits them back at the end of the set-phase. It operates on a temporary copy of the latest version of your file fetched from the repository. If the temporary copy modified, a new commit with the modified version will be created. Local files won't be touched.
branch
defines the branch to work on. Default: master tracking
can be either object
or head
(default). if set to object
a conflict will only occur if the file in the git repository has been updated while you were working on it. head
will cause a conflict if the HEAD
commit has been updated. pull
when present: tells the plugin to fast-forward pull the repository, fails if FF isn't possible. checkout
when present: tells the plugin to checkout the file.
Currently it only works inside existing git repositories.
kdb mount -R gitresolver /path/to/my/gitrepo/file.ini system/gittest ini shell execute/set='cd /path/to/my/gitrepo/ && git commit --amend'