Loading git-hooks +28 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,34 @@ cmd_remove () rm "$GIT_DIR"/hooks/$hook.d/"$script" } cmd_enable () { summary="enable a script from a hook" local hook script add_option hook yes add_option script yes parse_args "$@" || return _basic_check _change_check _installed_check chmod +x "$GIT_DIR"/hooks/$hook.d/"$script" } cmd_disable () { summary="disable a script from a hook" local hook script add_option hook yes add_option script yes parse_args "$@" || return _basic_check _change_check _installed_check chmod -x "$GIT_DIR"/hooks/$hook.d/"$script" } cmd_installed () { summary="show scripts installed under a hook" Loading Loading
git-hooks +28 −0 Original line number Diff line number Diff line Loading @@ -133,6 +133,34 @@ cmd_remove () rm "$GIT_DIR"/hooks/$hook.d/"$script" } cmd_enable () { summary="enable a script from a hook" local hook script add_option hook yes add_option script yes parse_args "$@" || return _basic_check _change_check _installed_check chmod +x "$GIT_DIR"/hooks/$hook.d/"$script" } cmd_disable () { summary="disable a script from a hook" local hook script add_option hook yes add_option script yes parse_args "$@" || return _basic_check _change_check _installed_check chmod -x "$GIT_DIR"/hooks/$hook.d/"$script" } cmd_installed () { summary="show scripts installed under a hook" Loading