]> git.eshelyaron.com Git - emacs.git/commit
Improve the logic of the file entry Git hooks to support more cases
authorJim Porter <jporterbugs@gmail.com>
Fri, 21 Apr 2023 17:06:49 +0000 (10:06 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sun, 23 Apr 2023 19:07:08 +0000 (12:07 -0700)
commit9914de503bd39b5a8b55a472d7cee6832a72e61d
tree1193106ec85adb66f888735c787b4626ce0ae910
parent2e85ac2b270700608776ba28ecf41fc8d184db12
Improve the logic of the file entry Git hooks to support more cases

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.
build-aux/git-hooks/commit-msg-files.awk