xref: /aosp_15_r20/external/flashrom/util/git-hooks/pre-applypatch (revision 0d6140be3aa665ecc836e8907834fcd3e3b018fc)
1*0d6140beSAndroid Build Coastguard Worker#!/bin/sh
2*0d6140beSAndroid Build Coastguard Worker#
3*0d6140beSAndroid Build Coastguard Worker# An example hook script to verify what is about to be committed
4*0d6140beSAndroid Build Coastguard Worker# by applypatch from an e-mail message.
5*0d6140beSAndroid Build Coastguard Worker#
6*0d6140beSAndroid Build Coastguard Worker# The hook should exit with non-zero status after issuing an
7*0d6140beSAndroid Build Coastguard Worker# appropriate message if it wants to stop the commit.
8*0d6140beSAndroid Build Coastguard Worker
9*0d6140beSAndroid Build Coastguard Worker. git-sh-setup
10*0d6140beSAndroid Build Coastguard Workertest -x "$GIT_DIR/hooks/pre-commit" &&
11*0d6140beSAndroid Build Coastguard Worker	exec "$GIT_DIR/hooks/pre-commit" ${1+"$@"}
12*0d6140beSAndroid Build Coastguard Worker:
13