1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 01:15:29 +02:00

Make running code cleanliness less painfull

* Only check for modifications in tracked files
* Tell the user to stash stuff, before running
This commit is contained in:
Moritz 'Morty' Strübe 2022-11-11 16:08:15 +01:00 committed by Jonah Graham
parent fa14e99ff8
commit 76fe5e6e2d

View file

@ -12,6 +12,10 @@
set -e
if test ! -z "$(git status -s -uno)"; then
echo "You have changes. Please stash them before continuing."
fi
##
# Check the features are all branded and all content has proper licenses
##
@ -28,7 +32,7 @@ ${DIR}/do_all_code_cleanups.sh
##
# Check that none of the above caused any changes
##
if test -z "$(git status -s)"; then
if test -z "$(git status -s -uno)"; then
echo "Tree looks clean!"
else
echo "Tree is dirty - something needs to be cleaned up in your commit (more info below)"