mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 05:15:43 +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:
parent
fa14e99ff8
commit
76fe5e6e2d
1 changed files with 5 additions and 1 deletions
|
@ -12,6 +12,10 @@
|
||||||
|
|
||||||
set -e
|
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
|
# 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
|
# 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!"
|
echo "Tree looks clean!"
|
||||||
else
|
else
|
||||||
echo "Tree is dirty - something needs to be cleaned up in your commit (more info below)"
|
echo "Tree is dirty - something needs to be cleaned up in your commit (more info below)"
|
||||||
|
|
Loading…
Add table
Reference in a new issue