diff options
| author | Jim Meyering <meyering@fb.com> | 2021-12-19 17:19:01 -0800 |
|---|---|---|
| committer | Jim Meyering <meyering@fb.com> | 2021-12-20 10:46:11 -0800 |
| commit | a2b21e910509f58a5d8c9976d46d7cd63d068ecc (patch) | |
| tree | b5d0fdcc79e4b46bedc605bc438907b3f138d18f /scripts/git-hooks/pre-commit | |
| parent | id: improve doc for when USER is omitted (diff) | |
| download | coreutils-a2b21e910509f58a5d8c9976d46d7cd63d068ecc.tar.gz coreutils-a2b21e910509f58a5d8c9976d46d7cd63d068ecc.zip | |
maint: commit-msg: compute UTF-8-aware line-length
* scripts/git-hooks/commit-msg: Count UTF-8 characters rather
than bytes to avoid erroneously rejecting as "longer than 72" a
log message line like the UTF-8 one for id.c just prior. It has
77 bytes but only 67 characters.
(check_msg): Read in "utf8" mode. Also include actual length
in the diagnostic.
(main): Don't loop when stdout is redirected, as it is when
invoked via vc-dwim.
Paul Eggert reported privately both the error of counting bytes
rather than chars and the re_edit loop when failing via vc-dwim.
Diffstat (limited to 'scripts/git-hooks/pre-commit')
0 files changed, 0 insertions, 0 deletions
