diff options
author | Zearin <zearin@gonk.net> | 2014-04-28 15:00:09 -0400 |
---|---|---|
committer | Zearin <zearin@gonk.net> | 2014-04-28 15:00:09 -0400 |
commit | e3b010c23bac87ca13fc8bd1377951e8b20726c1 (patch) | |
tree | f8c6c110fd9ae33ce2d0cc616ff1281ef0059c86 | |
parent | 1cf613347ef354eb75665c4e42b9ef2fdcceb84b (diff) | |
download | git-hooks-e3b010c23bac87ca13fc8bd1377951e8b20726c1.tar.gz git-hooks-e3b010c23bac87ca13fc8bd1377951e8b20726c1.tar.bz2 |
Use consistent function names
-rwxr-xr-x | git-hooks | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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' |