summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorJim Porter <jporterbugs@gmail.com>2023-04-12 23:03:31 -0700
committerJim Porter <jporterbugs@gmail.com>2023-04-20 21:40:02 -0700
commit4416262f59f5e74d3991fdf9c06ad776eca50663 (patch)
tree781c88e8f882e8cf1cda5c683528adcc4fd49a4c /autogen.sh
parentc4e038c7be38b2e6cf2d2c7c39264f068f789c02 (diff)
downloademacs-4416262f59f5e74d3991fdf9c06ad776eca50663.tar.gz
Add Git hooks to check filenames listed in the commit message
See <https://lists.gnu.org/archive/html/emacs-devel/2023-04/msg00274.html>. * build-aux/git-hooks/commit-msg-files.awk: * build-aux/git-hooks/post-commit: * build-aux/git-hooks/pre-push: New files... * autogen.sh: ... add them.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index af4c2ad14df..6127e7b24f4 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -340,7 +340,8 @@ git_config diff.texinfo.xfuncname \
tailored_hooks=
sample_hooks=
-for hook in commit-msg pre-commit prepare-commit-msg; do
+for hook in commit-msg pre-commit prepare-commit-msg post-commit \
+ pre-push commit-msg-files.awk; do
cmp -- build-aux/git-hooks/$hook "$hooks/$hook" >/dev/null 2>&1 ||
tailored_hooks="$tailored_hooks $hook"
done