2016-05-09 15:13:17 +00:00
|
|
|
# This is a example configuration file for the imag suite.
|
|
|
|
# It is written in TOML
|
|
|
|
|
2016-09-30 13:32:31 +00:00
|
|
|
#
|
|
|
|
# Configuration options for the user interface
|
|
|
|
#
|
|
|
|
[ui]
|
|
|
|
|
|
|
|
#
|
|
|
|
# Configuration options for the commandline user interface
|
|
|
|
#
|
|
|
|
[ui.cli]
|
|
|
|
|
2016-09-30 15:05:30 +00:00
|
|
|
# History file path for readline. Will be created by imag if it does not exist.
|
2016-09-30 13:32:31 +00:00
|
|
|
readline_history_file = "/tmp/readline.history"
|
2016-09-30 15:05:30 +00:00
|
|
|
|
|
|
|
# Number of lines to safe in the history file
|
2016-09-30 13:32:31 +00:00
|
|
|
readline_history_size = 100
|
2016-09-30 15:05:30 +00:00
|
|
|
|
|
|
|
# Ignore duplicated lines
|
2016-09-30 13:32:31 +00:00
|
|
|
readline_history_ignore_dups = true
|
2016-09-30 15:05:30 +00:00
|
|
|
|
|
|
|
# Tell if lines which begin with a space character are saved or not in the
|
|
|
|
# history list.
|
2016-09-30 13:32:31 +00:00
|
|
|
readline_history_ignore_space = true
|
2016-09-30 15:05:30 +00:00
|
|
|
|
|
|
|
# The prompt string to use
|
2016-09-30 13:32:31 +00:00
|
|
|
readline_prompt = ">> "
|
|
|
|
|
2016-05-09 15:13:17 +00:00
|
|
|
[store]
|
|
|
|
|
2016-07-16 20:36:06 +00:00
|
|
|
# Set to false if you do not want imag to create the directory where the store
|
|
|
|
# lives implicitely
|
|
|
|
implicit-create = false
|
|
|
|
|
2016-05-26 16:42:20 +00:00
|
|
|
# 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.
|
2016-09-20 13:24:23 +00:00
|
|
|
store-unload-hook-aspects = [ "debug", "vcs" ]
|
2016-05-09 15:13:17 +00:00
|
|
|
|
2016-07-15 21:25:09 +00:00
|
|
|
pre-create-hook-aspects = [ "debug", "vcs" ]
|
|
|
|
post-create-hook-aspects = [ "debug", "vcs" ]
|
2016-05-09 15:13:17 +00:00
|
|
|
|
2016-07-15 21:35:34 +00:00
|
|
|
pre-move-hook-aspects = [ "debug" ]
|
|
|
|
post-move-hook-aspects = [ "debug" ]
|
|
|
|
|
2016-07-15 21:25:09 +00:00
|
|
|
pre-retrieve-hook-aspects = [ "debug", "vcs" ]
|
|
|
|
post-retrieve-hook-aspects = [ "debug", "vcs" ]
|
2016-05-09 15:13:17 +00:00
|
|
|
|
2016-07-15 21:25:09 +00:00
|
|
|
pre-update-hook-aspects = [ "debug", "vcs" ]
|
|
|
|
post-update-hook-aspects = [ "debug", "vcs" ]
|
2016-05-09 15:13:17 +00:00
|
|
|
|
2016-07-15 21:25:09 +00:00
|
|
|
pre-delete-hook-aspects = [ "debug", "vcs" ]
|
|
|
|
post-delete-hook-aspects = [ "debug", "vcs" ]
|
2016-05-09 15:13:17 +00:00
|
|
|
|
2016-07-15 22:09:22 +00:00
|
|
|
[store.aspects.debug]
|
2016-05-09 15:13:17 +00:00
|
|
|
parallel = false
|
2016-07-15 22:09:22 +00:00
|
|
|
mutable_hooks = true
|
2016-05-09 15:13:17 +00:00
|
|
|
|
2016-07-15 21:25:09 +00:00
|
|
|
[store.aspects.vcs]
|
|
|
|
parallel = false
|
|
|
|
mutable_hooks = false
|
|
|
|
|
2016-07-16 13:41:04 +00:00
|
|
|
[store.hooks.stdhook_debug]
|
2016-05-09 15:13:17 +00:00
|
|
|
aspect = "debug"
|
2016-07-15 22:09:22 +00:00
|
|
|
|
2016-09-17 15:46:52 +00:00
|
|
|
[store.hooks.stdhook_git_update]
|
2016-07-16 15:31:19 +00:00
|
|
|
aspect = "vcs"
|
|
|
|
|
2016-09-20 07:13:19 +00:00
|
|
|
# set to false to disable
|
|
|
|
enabled = true
|
|
|
|
|
2016-07-16 15:31:19 +00:00
|
|
|
# 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
|
|
|
|
|
2016-07-16 15:58:18 +00:00
|
|
|
# Ensure to be on this branche before doing anything.
|
2016-09-19 07:47:37 +00:00
|
|
|
ensure_branch = "refs/heads/master"
|
2016-07-16 15:58:18 +00:00
|
|
|
|
2016-07-16 16:01:02 +00:00
|
|
|
# Try to checkout the ensure_branch if it isn't checked out
|
|
|
|
try_checkout_ensure_branch = true
|
|
|
|
|
2016-09-17 15:46:52 +00:00
|
|
|
# Commit configuration
|
|
|
|
[store.hooks.stdhook_git_update.commit]
|
|
|
|
|
2016-09-20 13:26:55 +00:00
|
|
|
# Enable committing here. If not enabled, the "stdhook_git_storeunload" hook
|
|
|
|
# will commit all changes in one commit when the store is closed.
|
|
|
|
enabled = false
|
|
|
|
|
2016-09-17 15:46:52 +00:00
|
|
|
# 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]
|
2016-07-15 21:25:09 +00:00
|
|
|
aspect = "vcs"
|
|
|
|
|
2016-09-20 07:13:19 +00:00
|
|
|
# set to false to disable
|
|
|
|
enabled = true
|
|
|
|
|
2016-07-16 15:31:19 +00:00
|
|
|
# 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
|
|
|
|
|
2016-07-16 15:58:18 +00:00
|
|
|
# Ensure to be on this branche before doing anything.
|
2016-09-19 07:47:37 +00:00
|
|
|
ensure_branch = "refs/heads/master"
|
2016-07-16 15:58:18 +00:00
|
|
|
|
2016-07-16 16:01:02 +00:00
|
|
|
# Try to checkout the ensure_branch if it isn't checked out
|
|
|
|
try_checkout_ensure_branch = true
|
|
|
|
|
2016-09-08 15:09:10 +00:00
|
|
|
# Commit configuration
|
2016-09-17 15:46:52 +00:00
|
|
|
[store.hooks.stdhook_git_delete.commit]
|
2016-09-08 15:09:10 +00:00
|
|
|
|
2016-09-20 13:26:55 +00:00
|
|
|
# Enable committing here. If not enabled, the "stdhook_git_storeunload" hook
|
|
|
|
# will commit all changes in one commit when the store is closed.
|
|
|
|
enabled = false
|
|
|
|
|
2016-09-08 15:09:10 +00:00
|
|
|
# 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
|
2016-09-17 15:46:52 +00:00
|
|
|
message = "Deleted"
|
2016-09-08 15:09:10 +00:00
|
|
|
|
2016-09-20 13:24:23 +00:00
|
|
|
[store.hooks.stdhook_git_storeunload]
|
|
|
|
aspect = "vcs"
|
|
|
|
|
|
|
|
# set to false to disable
|
|
|
|
enabled = true
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
# Commit configuration
|
|
|
|
[store.hooks.stdhook_git_storeunload.commit]
|
|
|
|
|
2016-09-20 13:26:55 +00:00
|
|
|
# Enable on-unload-committing, causing the store-unload hook to commit the
|
|
|
|
# changes to the store. This has no effect if the changes were already committed
|
|
|
|
# by the other git hooks.
|
|
|
|
enabled = true
|
|
|
|
|
2016-10-07 11:50:56 +00:00
|
|
|
# Do a git-add on all files that are not in the index yet, before committing.
|
|
|
|
# This must be turned on, as we do not support adding with "Update" hooks and
|
|
|
|
# only committing with the "Drop" hook, yet.
|
|
|
|
# So, effectively, disabling this will disable committing.
|
|
|
|
#
|
|
|
|
# If not set: false
|
|
|
|
add_wt_changes = true
|
|
|
|
|
2016-09-20 13:24:23 +00:00
|
|
|
# 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 = "Commit on drop"
|
|
|
|
|