From 9fda02e0e9e2187c101f2d8c1120336abc43f7d5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 24 Oct 2008 19:06:53 +0200 Subject: git-hook: Default to list --- etc/functions/git-hook | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'etc') diff --git a/etc/functions/git-hook b/etc/functions/git-hook index f20c988..bb44e05 100644 --- a/etc/functions/git-hook +++ b/etc/functions/git-hook @@ -3,7 +3,7 @@ ## Written 2008 by Daniel Friesel autoload fdie -typeset hook_dir action=$1 hook=$2 +typeset hook_dir action=${1=list} hook=$2 if [[ -n $GIT_DIR && -d $GIT_DIR ]] { hook_dir=$GIT_DIR/hooks @@ -23,10 +23,6 @@ function usage { ENDOFHELP } -if [[ $#* < 1 ]] { - usage; return -} - function hook_enable { if [[ -e $hook_dir/$hook ]] { if ! [[ -x $hook_dir/$hook ]] { -- cgit v1.2.3