You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, warnings about non-American English words in commit messages
did not indicate the specific word or its exact location. This commit
improves the hook by outputting the precise line number and word that
triggered the warning.
A new function, 'get_all_match_positions', was introduced to locate the
first occurrence of each target word in a multi-line string. We now
preserve blank lines in the commit message by using the variable
'FULL_COMMIT_MSG_WITH_SPACE', so that the line search functionality
operates correctly.
This change makes it easier for users to quickly identify and correct
non-American English words in their commit messages.
Change-Id: I8a2b7eb3984b06b0be6506ca4f410ca857fe50a7
0 commit comments