Commit 68877218 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

scripts/check_format: use git to find text files



Use 'git grep -I' to determine the list of files that git considers to be
text (rather than hardcoding a list of known text file extensions) and
check all of them for newline at end of file.

Change-Id: I9b947176af2792c139a2782856e3c41061e18f10
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 35d53846
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -30,7 +30,7 @@ else
	exit 0
fi

git ls-files -z '*.c' '*.cpp' '*.h' '*.txt' '*.md' '*.mk' '*.txt' '*.sh' '*.py' | \
git grep -I -l -e . -z | \
	xargs -0 -P8 -n1 scripts/eofnl

exit 0