1#!/bin/sh 2# 3# A hook script to verify what is about to be committed. 4# Called by "git commit" with no arguments. The hook should 5# exit with non-zero status after issuing an appropriate message if 6# it wants to stop the commit. 7 8# Check for whitespace errors 9git diff-index --check --cached HEAD -- || exit 1 10