July 29, 2019
4:24 a.m.
On 7/27/19 6:15 PM, Guy Harris wrote:
I don't think Git itself cares about trailing spaces, unless it supports a configuration option to make it do so.
There might be commit hooks that are checking for that (Wireshark has some).
Right on both counts. The sample Git hooks in .git/hooks/pre-commit.sample check for trailing white space, because it makes the output of 'git diff' fragile in email etc., and I'm following this lead in my own Git repository. tzdb 'make check_white_space' does something similar, for similar reasons. It currently has an exception for leap-seconds.list, which I'd rather remove.