File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ astyleit() {
81
81
scripts/doxygen_space.pl " $modified "
82
82
diff " $1 " " $modified " > /dev/null || mv " $modified " " $1 "
83
83
rm -f " $modified "
84
+ rm -f " $modified .sortinc"
84
85
}
85
86
86
87
for f in " $@ " ; do
Original file line number Diff line number Diff line change @@ -91,22 +91,19 @@ for f in $MODIFIED; do
91
91
92
92
cp $f $m
93
93
ASTYLEPROGRESS=" [$i /$N ]" astyle.sh $f
94
- if diff -u $m $f >> $ASTYLEDIFF ; then
95
- # no difference found
96
- rm $m
97
- fi
94
+ diff -u $m $f >> $ASTYLEDIFF
95
+ rm $m
98
96
done
99
97
100
98
if [ -s " $ASTYLEDIFF " ]; then
101
99
if tty -s; then
102
100
# review astyle changes
103
101
colordiff < $ASTYLEDIFF | less -r
104
102
else
105
- echo " Files changed (see $ASTYLEDIFF ) "
103
+ echo " Files changed"
106
104
fi
107
- else
108
- rm $ASTYLEDIFF
109
105
fi
106
+ rm $ASTYLEDIFF
110
107
111
108
112
109
# verify SIP files
You can’t perform that action at this time.
3 commit comments
3nids commentedon May 28, 2018
@m-kuhn since this commit, I have to run prepare-commit in cycles (as soon as there is a change, it stops). Am I the only one?
m-kuhn commentedon May 28, 2018
Revert please, also happens to me
3nids commentedon May 28, 2018
done