windows hook scripts newlines without CR
authorJoey Hess <joeyh@joeyh.name>
Thu, 2 Nov 2023 17:35:54 +0000 (13:35 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 2 Nov 2023 17:37:04 +0000 (13:37 -0400)
commit4e35067325022e4d8790d45557156fd1166484df
tree10a062a7d1cda8a40b3eecc821205d10b2c62d35
parentc41ca6c8329ee4c23e6b6ddde5a1587f81a47aeb
windows hook scripts newlines without CR

Windows: When git-annex init is installing hook scripts, it will
avoid ending lines with CR for portability.

Existing hook scripts that do have CR line endings will not be changed.
While it would be possible to have git-annex init upgrade them, users would
need to know to use that command to do that, and it would add complexity
that does not seem warranted for the portability benefit alone.

Sponsored-by: Luke T. Shumaker on Patreon
CHANGELOG
Git/Hook.hs
doc/forum/Windows_eol_issues/comment_5_e711bdfcee4ec9a2860662e8c65a9c0f._comment [new file with mode: 0644]