124 lines
3.6 KiB
TOML
124 lines
3.6 KiB
TOML
# This is a example configuration file for the imag suite.
|
|
# It is written in TOML
|
|
|
|
[store]
|
|
|
|
# Set to false if you do not want imag to create the directory where the store
|
|
# lives implicitely
|
|
implicit-create = false
|
|
|
|
# Hooks which get executed right before the Store is closed.
|
|
# They get the store path as StoreId passed, so they can alter the complete
|
|
# store, so these hooks should be chosen carefully.
|
|
store-unload-hook-aspects = [ "debug" ]
|
|
|
|
pre-create-hook-aspects = [ "debug", "vcs" ]
|
|
post-create-hook-aspects = [ "debug", "vcs" ]
|
|
|
|
pre-move-hook-aspects = [ "debug" ]
|
|
post-move-hook-aspects = [ "debug" ]
|
|
|
|
pre-retrieve-hook-aspects = [ "debug", "vcs" ]
|
|
post-retrieve-hook-aspects = [ "debug", "vcs" ]
|
|
|
|
pre-update-hook-aspects = [ "debug", "vcs" ]
|
|
post-update-hook-aspects = [ "debug", "vcs" ]
|
|
|
|
pre-delete-hook-aspects = [ "debug", "vcs" ]
|
|
post-delete-hook-aspects = [ "debug", "vcs" ]
|
|
|
|
[store.aspects.debug]
|
|
parallel = false
|
|
mutable_hooks = true
|
|
|
|
[store.aspects.vcs]
|
|
parallel = false
|
|
mutable_hooks = false
|
|
|
|
[store.hooks.stdhook_debug]
|
|
aspect = "debug"
|
|
|
|
[store.hooks.stdhook_git_create]
|
|
aspect = "vcs"
|
|
|
|
# Fail if the repository cannot be opened. If this is set to `false`, the error
|
|
# will be printed, but will not abort the store operation. `true` will print the
|
|
# error and abort the store action.
|
|
abort_on_repo_init_failure = true
|
|
|
|
# Ensure to be on this branche before doing anything.
|
|
ensure_branch = "refs/heads/master"
|
|
|
|
# Try to checkout the ensure_branch if it isn't checked out
|
|
try_checkout_ensure_branch = true
|
|
|
|
[store.hooks.stdhook_git_retrieve]
|
|
aspect = "vcs"
|
|
|
|
# Fail if the repository cannot be opened. If this is set to `false`, the error
|
|
# will be printed, but will not abort the store operation. `true` will print the
|
|
# error and abort the store action.
|
|
abort_on_repo_init_failure = true
|
|
|
|
# Ensure to be on this branche before doing anything.
|
|
ensure_branch = "master"
|
|
|
|
# Try to checkout the ensure_branch if it isn't checked out
|
|
try_checkout_ensure_branch = true
|
|
|
|
[store.hooks.stdhook_git_update]
|
|
aspect = "vcs"
|
|
|
|
# Fail if the repository cannot be opened. If this is set to `false`, the error
|
|
# will be printed, but will not abort the store operation. `true` will print the
|
|
# error and abort the store action.
|
|
abort_on_repo_init_failure = true
|
|
|
|
# Ensure to be on this branche before doing anything.
|
|
ensure_branch = "master"
|
|
|
|
# Try to checkout the ensure_branch if it isn't checked out
|
|
try_checkout_ensure_branch = true
|
|
|
|
# Commit configuration
|
|
[store.hooks.stdhook_git_update.commit]
|
|
|
|
# Whether to do the commit interactively
|
|
interactive = false
|
|
|
|
# Set to true to use the $EDITOR for the commit, to false to do on commandline
|
|
# When committing without editor, only a single line is allowed as commit
|
|
# message
|
|
interactive_editor = false
|
|
|
|
# Commit message if the commit is not interactive
|
|
message = "Update"
|
|
|
|
[store.hooks.stdhook_git_delete]
|
|
aspect = "vcs"
|
|
|
|
# Fail if the repository cannot be opened. If this is set to `false`, the error
|
|
# will be printed, but will not abort the store operation. `true` will print the
|
|
# error and abort the store action.
|
|
abort_on_repo_init_failure = true
|
|
|
|
# Ensure to be on this branche before doing anything.
|
|
ensure_branch = "master"
|
|
|
|
# Try to checkout the ensure_branch if it isn't checked out
|
|
try_checkout_ensure_branch = true
|
|
|
|
# Commit configuration
|
|
[store.hooks.stdhook_git_delete.commit]
|
|
|
|
# Whether to do the commit interactively
|
|
interactive = false
|
|
|
|
# Set to true to use the $EDITOR for the commit, to false to do on commandline
|
|
# When committing without editor, only a single line is allowed as commit
|
|
# message
|
|
interactive_editor = false
|
|
|
|
# Commit message if the commit is not interactive
|
|
message = "Deleted"
|
|
|