You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/prepare-commit.sh
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -59,10 +59,11 @@ fi
59
59
60
60
if [[ -n"$QGIS_CHECK_SPELLING"&&-x"${TOPLEVEL}"/scripts/spell_check/check_spelling.sh ]];then"${TOPLEVEL}"/scripts/spell_check/check_spelling.sh "$MODIFIED";fi
61
61
62
+
FILES_CHANGED=0
62
63
63
64
# save original changes
64
65
REV=$(git log -n1 --pretty=%H)
65
-
git diff >sha-"$REV".diff
66
+
#git diff >sha-"$REV".diff
66
67
67
68
ASTYLEDIFF=astyle.$REV.diff
68
69
true>"$ASTYLEDIFF"
@@ -101,9 +102,11 @@ if [ -s "$ASTYLEDIFF" ]; then
101
102
if tty -s;then
102
103
# review astyle changes
103
104
colordiff <"$ASTYLEDIFF"| less -r
105
+
rm "$ASTYLEDIFF"
104
106
else
105
107
echo"Files changed (see $ASTYLEDIFF)"
106
108
fi
109
+
FILES_CHANGED=1
107
110
else
108
111
rm "$ASTYLEDIFF"
109
112
fi
@@ -136,17 +139,15 @@ if [[ -s "$SIPIFYDIFF" ]]; then
0 commit comments