xref: /aosp_15_r20/external/flashrom/util/git-hooks/pre-commit (revision 0d6140be3aa665ecc836e8907834fcd3e3b018fc)
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