summaryrefslogtreecommitdiff
path: root/build-aux/git-hooks/commit-msg-files.awk
Commit message (Collapse)AuthorAgeFilesLines
* When examining merge commits in our Git hooks, only check the first parentJim Porter2023-04-231-1/+1
| | | | | | | | | | | | | | This does two things: 1. We can properly validate log entries in merge commits. 2. We don't check commits that were merged in from other branches. * build-aux/git-hooks/commit-msg-files.awk (get_commit_changes): Get the changes compared to the first parent. * build-aux/git-hooks/pre-push: Only get the first parent of merge commits when returning the rev-list, and only check "master" or "emacs-NN" branches.
* Improve the logic of the file entry Git hooks to support more casesJim Porter2023-04-231-8/+23
| | | | | | | | | In addition to starting with a "*", file entries now need a ":" somewhere in them. This helps reduce false positives with bulleted lists. Also, support multiple files separated by commas after a "*". * build-aux/git-hooks/commit-msg-files.awk (check_commit_msg_files): Accumulate file entries over multiple lines to support the above.
* Add Git hooks to check filenames listed in the commit messageJim Porter2023-04-201-0/+113
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.