commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Herbert <alex.d.herb...@gmail.com>
Subject [statitsics] .gitattributes
Date Fri, 24 May 2019 07:28:24 GMT
The recent PR to add a new module to statistics may have suffered from problems with converting
line endings.

This can be solved by having Windows users run this (optionally with --global):

> git config core.autocrlf true

But a better fix [1] is to add a .gitattributes file [2] containing:

* text=auto

The fix then applies to anyone using the repo irrespective of their own git global config.

[1] https://www.edwardthomson.com/blog/git_for_windows_line_endings.html <https://www.edwardthomson.com/blog/git_for_windows_line_endings.html>
[2] https://git-scm.com/docs/gitattributes <https://git-scm.com/docs/gitattributes>

Any objections to modifying the repo to have this configuration file?

Alex


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message