Skip to content

Commit cda803a

Browse files
authored
chore: enforce linefeeds at eols in the .gitattributes file [skip ci] (#28)
chore: enforce linefeeds at eols in the .gitattributes file [skip ci] We should avoid making changes to the global git config if we can help it. This change stops setting the value for core.autocrlf globally on CI by moving it to the .gitattributes file which is local to a git repository. This should help out with removing this change from https://github.com/postmanlabs/postject/pull/8/files#diff-78a8a19706dbd2a4425dd72bdab0502ed7a2cef16365ab7030a5a0588927bf47R68-R69. Refs: https://stackoverflow.com/a/52996849 Signed-off-by: Darshan Sen <[email protected]> Signed-off-by: Darshan Sen <[email protected]>
1 parent a5fb07e commit cda803a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
*.c text eol=lf
2+
*.cc text eol=lf
3+
*.h text eol=lf
4+
*.js text eol=lf
5+
*.markdown text eol=lf
6+
*.mjs text eol=lf

0 commit comments

Comments
 (0)