mirror of
https://https.git.savannah.gnu.org/git/diffutils.git
synced 2026-01-27 01:44:20 +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.
16 lines
478 B
Bash
Executable File
16 lines
478 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# An example hook script to check the commit log message taken 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. The hook is
|
|
# allowed to edit the commit message file.
|
|
#
|
|
# To enable this hook, rename this file to "applypatch-msg".
|
|
|
|
. git-sh-setup
|
|
commitmsg="$(git rev-parse --git-path hooks/commit-msg)"
|
|
test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"}
|
|
:
|