]> gitweb.fluxo.info Git - git-hooks.git/commitdiff
Use consistent braces for functions
authorZearin <zearin@gonk.net>
Mon, 28 Apr 2014 18:51:13 +0000 (14:51 -0400)
committerZearin <zearin@gonk.net>
Mon, 28 Apr 2014 18:51:13 +0000 (14:51 -0400)
git-hooks

index aa55f72608e97908723bf9d8efe0047a2a9f4f95..8ee996ad408e75916c6f8fc5c55cdcfdb83ee8cf 100755 (executable)
--- a/git-hooks
+++ b/git-hooks
@@ -162,7 +162,8 @@ git-hooks run "$0" "$@"';
     fi
 }
 
-function installglobal {
+function installglobal 
+{
     TEMPLATE="$HOME/.git-template-with-git-hooks"
     if [ ! -d "${TEMPLATE}" ] ; then
         DEFAULT=/usr/share/git-core/templates
@@ -180,13 +181,16 @@ 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 uninstallglobal 
+{
     git config --global --unset init.templatedir
 }
 
-function report_error {
+function report_error 
+{
     echo "Hook failed: $last_run_hook"
     exit 1
+
 }
 
 case $1 in