From 729efea9574c33da40085384a69a42e2c4d100a9 Mon Sep 17 00:00:00 2001 From: Thom Wiggers Date: Wed, 16 Jan 2019 11:28:00 +0100 Subject: [PATCH] Handle whitespace via gitattributes --- .gitattributes | 3 +++ Makefile | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..942edecc --- /dev/null +++ b/.gitattributes @@ -0,0 +1,3 @@ +* text=auto +*.[ch] text whitespace=fix +*.yaml text whitespace=fix diff --git a/Makefile b/Makefile index 5c94702f..0e1fbe1f 100644 --- a/Makefile +++ b/Makefile @@ -18,10 +18,6 @@ clean: .PHONY: format format: find . -iname *.h -o -iname *.c | xargs clang-format -i -style=file -ifneq (,$(shell which dos2unix)) - # TODO should we make this mandatory? - find . -iname *.h -o -iname *.c | xargs dos2unix -q -endif .PHONY: tidy tidy: require_scheme