From 721238ce144cdc344a09147243c2f32561e7f217 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 17 Sep 2016 17:46:52 +0200 Subject: [PATCH] Add configuration for delete hook --- imagrc.toml | 42 ++++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/imagrc.toml b/imagrc.toml index ac323962..83f7e480 100644 --- a/imagrc.toml +++ b/imagrc.toml @@ -66,20 +66,6 @@ ensure_branch = "master" # Try to checkout the ensure_branch if it isn't checked out try_checkout_ensure_branch = true -[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 - [store.hooks.stdhook_git_update] aspect = "vcs" @@ -108,3 +94,31 @@ 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" +