updateSubmodule: Only show new files for resource loader (js/css/less)

We don't care if there are new config files or new i18n files.

Also move --color=never to grep, as that will remove colours from
git diff.

Change-Id: I09ffcb2beefad95b5530b61a9e99c2dbf20c511f
This commit is contained in:
Ed Sanders 2023-12-02 10:09:21 +00:00
parent d42a0772bb
commit 770e3e90fa

View file

@ -49,8 +49,8 @@ fi
NEWCHANGES=$(git log ..$TARGET --oneline --no-merges --topo-order --reverse --color=never)
TASKS=$(git log ..$TARGET --no-merges --format=format:%B | grep "Bug: T" | sort | uniq)
NEWCHANGESDISPLAY=$(git log ..$TARGET --oneline --no-merges --reverse --color=always)
NEW_I18N_KEYS=$(git diff --color=never HEAD..$TARGET -- i18n/en.json | grep '^+' | grep -v '^+++' | sed -E 's/^\+\s*"([^"]+)":.*/\1/')
NEW_FILES=$(git diff --color=never HEAD..$TARGET --name-only --diff-filter=A)
NEW_I18N_KEYS=$(git diff HEAD..$TARGET -- i18n/en.json | grep '^+' | grep --color=never -v '^+++' | sed -E 's/^\+\s*"([^"]+)":.*/\1/')
NEW_FILES=$(git diff HEAD..$TARGET --name-only --diff-filter=A | grep --color=never -E "\.(js|css|less)$")
COMMITMSG="Update VE core submodule to $TARGETDESC