2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-22 09:58:01 +00:00

build: Add gitattribute file to build-aux

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 <aserdean@ovn.org>
Co-authored-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Aaron Conole <aconole@redhat.com>
Acked-by: Ben Pfaff <blp@ovn.org>
This commit is contained in:
Alin Gabriel Serdean 2018-07-19 19:39:42 +03:00
parent 7c1ccbd1fb
commit 3c921cc2b6
3 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -31,7 +31,6 @@
.libs
.tmp_versions
.vagrant
.gitattributes
/Makefile
/Makefile.in
/aclocal.m4

View File

@ -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 \

1
build-aux/.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
* text eol=lf