Add configuration settings for commit-on-drop feature
This commit is contained in:
parent
b8916c3526
commit
91c200ca60
1 changed files with 32 additions and 1 deletions
33
imagrc.toml
33
imagrc.toml
|
@ -10,7 +10,7 @@ implicit-create = false
|
||||||
# Hooks which get executed right before the Store is closed.
|
# Hooks which get executed right before the Store is closed.
|
||||||
# They get the store path as StoreId passed, so they can alter the complete
|
# They get the store path as StoreId passed, so they can alter the complete
|
||||||
# store, so these hooks should be chosen carefully.
|
# store, so these hooks should be chosen carefully.
|
||||||
store-unload-hook-aspects = [ "debug" ]
|
store-unload-hook-aspects = [ "debug", "vcs" ]
|
||||||
|
|
||||||
pre-create-hook-aspects = [ "debug", "vcs" ]
|
pre-create-hook-aspects = [ "debug", "vcs" ]
|
||||||
post-create-hook-aspects = [ "debug", "vcs" ]
|
post-create-hook-aspects = [ "debug", "vcs" ]
|
||||||
|
@ -100,3 +100,34 @@ interactive_editor = false
|
||||||
# Commit message if the commit is not interactive
|
# Commit message if the commit is not interactive
|
||||||
message = "Deleted"
|
message = "Deleted"
|
||||||
|
|
||||||
|
[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]
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue