#!/usr/bin/env bash

function test_cmd {
  if ! $1 ;
  then
    echo "Error: $2";
    exit $3
  fi
}

cd "${BASH_SOURCE%/*}/../.."

test_cmd scripts/developer/git/setup-aliases \
  "Failed to setup git aliases" 2

test_cmd scripts/developer/git/setup-hooks \
  "Failed to setup git hooks" 1
git config hooks.clang-format true

#!/usr/bin/env bash

function test_cmd {
  if ! $1 ;
  then
    echo "Error: $2";
    exit $3
  fi
}

cd "${BASH_SOURCE%/*}/../.."

test_cmd scripts/developer/git/setup-aliases \
  "Failed to setup git aliases" 2

test_cmd scripts/developer/git/setup-hooks \
  "Failed to setup git hooks" 1
git config hooks.clang-format false

Disable clang-format hooks. It's more annoying than useful.
Disable clang-format hooks.  It's more annoying than useful.
