Skip to content

Commit 9cfcc14

Browse files
[fmt] update .gitattributes to take care of CRLF before commit (PR MDAnalysis#5446)
1 parent 3160b8e commit 9cfcc14

3 files changed

Lines changed: 10 additions & 0 deletions

File tree

.git-blame-ignore-revs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,5 @@ c08cb797fd1a2cb45bc0b9e4522cabb15d1f36bd
4141
b8fe34b73c9df9330c1608229b2f8cddc6e275b4
4242
#4885
4343
263bbe65047e535fbad981852ad9c7327826f93d
44+
#5446
45+
a6566f8a86eb3a74521ce7fc3658527224a02fd3

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Ensure all line endings for text files are LF (UNIX, Python default) and not CRLF (Windows/DOS default)
2+
* text=auto eol=lf
3+
4+
# ignore all data files from testsuite/MDAnalysisTests/data/
5+
testsuite/MDAnalysisTests/data/* -text
6+
testsuite/MDAnalysisTests/data/**/* -text

package/CHANGELOG

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ The rules for this file:
2323
* 2.11.0
2424

2525
Fixes
26+
* Added `.gitattributes` to enforce LF (\n) as line endings and renormalized
27+
existing files to conform (Issue #5315, PR #5446)
2628
* `AtomGroup.rotate()` and the `rotateby` trajectory transformation now
2729
also rotate velocities and forces besides positions. This also affects
2830
`MDAnalysis.analysis.align.alignto()` and `AlignTraj`, since they

0 commit comments

Comments
 (0)