]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
Use consistent function names
authorZearin <zearin@gonk.net>
Mon, 28 Apr 2014 19:00:09 +0000 (15:00 -0400)
committerZearin <zearin@gonk.net>
Mon, 28 Apr 2014 19:00:09 +0000 (15:00 -0400)
git-hooks

index 8ee996ad408e75916c6f8fc5c55cdcfdb83ee8cf..ed1e66f20012cc02054a985b418820779e25fa54 100755 (executable)
--- a/git-hooks
+++ b/git-hooks
@@ -162,7 +162,7 @@ git-hooks run "$0" "$@"';
     fi
 }
 
-function installglobal 
+function install_global 
 {
     TEMPLATE="$HOME/.git-template-with-git-hooks"
     if [ ! -d "${TEMPLATE}" ] ; then
@@ -181,7 +181,7 @@ echo \"git hooks not installed in this repository.  Run 'git hooks --install' to
     echo "Git global config init.templatedir is now set to ${TEMPLATE}"
 }
 
-function uninstallglobal 
+function uninstall_global 
 {
     git config --global --unset init.templatedir
 }
@@ -206,10 +206,10 @@ case $1 in
         install_hooks "$1"
         ;;
     --installglobal )
-        installglobal
+        install_global
         ;;
     --uninstallglobal )
-        uninstallglobal
+        uninstall_global
         ;;
     -h|--help|-? )
         echo 'Git Hooks'