From e30566152034665fd1ae84ae65e6b426f1fac0af Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 21 Apr 2010 13:48:40 +0200 Subject: Add option to disable hook execution for ct push --- bin/ct | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'bin') diff --git a/bin/ct b/bin/ct index 468417a..c383092 100755 --- a/bin/ct +++ b/bin/ct @@ -56,16 +56,18 @@ if [[ -r $XDG_CONFIG_HOME/caretaker/caretaker.conf ]] { # Parse commandline options while [[ $1 == --* ]] { case $1 in - --auto-update) (( AUTOUPDATE = 1 )) ;; - --no-auto-update) (( AUTOUPDATE = 0 )) ;; - --colours) (( COLOURS = 1 )) ;; - --no-colours) (( COLOURS = 0 )) ;; - --magic-etc) (( MAGIC_ETC = 1 )) ;; - --no-magic-etc) (( MAGIC_ETC = 0 )) ;; - --progress) (( PROGRESS = 1 )) ;; - --no-progress) (( PROGRESS = 0 )) ;; - --quiet) (( SILENT = 1 )) ;; - --no-quiiet) (( SILENT = 0 )) ;; + --auto-update) (( AUTOUPDATE = 1 )) ;; + --no-auto-update) (( AUTOUPDATE = 0 )) ;; + --colours) (( COLOURS = 1 )) ;; + --no-colours) (( COLOURS = 0 )) ;; + --hook-on-push) (( HOOK_ON_PUSH = 1 )) ;; + --no-hook-on-push) (( HOOK_ON_PUSH = 0 )) ;; + --magic-etc) (( MAGIC_ETC = 1 )) ;; + --no-magic-etc) (( MAGIC_ETC = 0 )) ;; + --progress) (( PROGRESS = 1 )) ;; + --no-progress) (( PROGRESS = 0 )) ;; + --quiet) (( SILENT = 1 )) ;; + --no-quiiet) (( SILENT = 0 )) ;; --version) die "see '$0 version'\n" ;; --help) die "see '$0 help'\n" ;; @@ -97,6 +99,7 @@ if (( $#PKG_ROOTS == 0 )) { : ${SILENT=0} : ${AUTOUPDATE=1} : ${GIT_USE_ORIGIN=1} +: ${HOOK_ON_PUSH=1} : ${COLOURS=1} : ${MAGIC_ETC=1} : ${PROGRESS=1} -- cgit v1.2.3