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: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
35d53846b1
commit
6887721802
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user