Skip to content

Commit

Permalink
build: Add gitattribute file to build-aux
Browse files Browse the repository at this point in the history
The command: `make check-tabs` fails on Windows due to line ending conversions
caused by the following setting: `git config --global core.autocrlf true`
(the whitelist `build-aux/initial-tab-whitelist` becomes a blacklist)

This patch adds a .gittatribute file to build-aux to force LF endings
on Windows.

Signed-off-by: Alin Gabriel Serdean <[email protected]>
Co-authored-by: Aaron Conole <[email protected]>
Signed-off-by: Aaron Conole <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
aserdean and apconole committed Jul 19, 2018
1 parent 7c1ccbd commit 3c921cc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
.libs
.tmp_versions
.vagrant
.gitattributes
/Makefile
/Makefile.in
/aclocal.m4
Expand Down
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ dist-hook-git: distfiles
(cat distfiles; sed 's|^|datapath/|' datapath/distfiles) | \
LC_ALL=C sort -u > all-distfiles; \
(cd $(srcdir) && git ls-files) | grep -v '\.gitignore$$' | \
grep -v '\.gitattributes$$' | \
LC_ALL=C sort -u > all-gitfiles; \
LC_ALL=C comm -1 -3 all-distfiles all-gitfiles > missing-distfiles; \
if test -s missing-distfiles; then \
Expand Down
1 change: 1 addition & 0 deletions build-aux/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text eol=lf

0 comments on commit 3c921cc

Please sign in to comment.