mirror of
https://https.git.savannah.gnu.org/git/diffutils.git
synced 2026-01-27 09:54:25 +00:00
* bootstrap.conf (bootstrap_epilogue): Merge from coreutils, so that a local commit hook will now help enforce consistent commit messages. * Makefile.am (check-git-hook-script-sync): New rule, largely copied from coreutils. * scripts/git-hooks/commit-msg: New file, from coreutils, but with adapted list of program names. * scripts/git-hooks/applypatch-msg: New file, from git. * scripts/git-hooks/pre-applypatch: Likewise. * scripts/git-hooks/pre-commit: Likewise.
15 lines
424 B
Bash
Executable File
15 lines
424 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# An example hook script to verify what is about to be committed
|
|
# by applypatch from an e-mail message.
|
|
#
|
|
# The hook should exit with non-zero status after issuing an
|
|
# appropriate message if it wants to stop the commit.
|
|
#
|
|
# To enable this hook, rename this file to "pre-applypatch".
|
|
|
|
. git-sh-setup
|
|
precommit="$(git rev-parse --git-path hooks/pre-commit)"
|
|
test -x "$precommit" && exec "$precommit" ${1+"$@"}
|
|
:
|