#!/bin/bash
DIFF=`git diff -U0 $1...$2 | clang-format-diff-3.8 -p1`
if [ -z "$DIFF" ]; then
  exit 0
else
  printf "ERROR: clang-format-diff detected formatting issues. Please run clang-format on your branch.\nThe following formatting changes are suggested:\n\n%s" "$DIFF"
  exit 1
fi

Add script to run clang-format-diff
Add script to run clang-format-diff
