Merge "Propose translation update: Handle PO-Revision-Date"
This commit is contained in:
commit
fdddcd6b97
@ -59,11 +59,12 @@ fi
|
||||
# Add all changed files to git
|
||||
git add $PROJECT/locale/*
|
||||
|
||||
# Don't send files where the only things that have changed are the
|
||||
# creation date, the version number or comment lines.
|
||||
# Don't send files where the only things which have changed are the
|
||||
# creation date, the version number, the revision date, or comment
|
||||
# lines.
|
||||
for f in `git diff --cached --name-only`
|
||||
do
|
||||
if [ `git diff --cached $f |egrep -v "(POT-Creation-Date|Project-Id-Version|^\+{3}|^\-{3}|^[-+]#)" | egrep -c "^[\-\+]"` -eq 0 ]
|
||||
if [ `git diff --cached $f |egrep -v "(POT-Creation-Date|Project-Id-Version|PO-Revision-Date|^\+{3}|^\-{3}|^[-+]#)" | egrep -c "^[\-\+]"` -eq 0 ]
|
||||
then
|
||||
git reset -q $f
|
||||
git checkout -- $f
|
||||
|
@ -95,10 +95,11 @@ do
|
||||
done
|
||||
|
||||
# Don't send files where the only things which have changed are the
|
||||
# creation date, the version number or comment lines.
|
||||
# creation date, the version number, the revision date, or comment
|
||||
# lines.
|
||||
for f in `git diff --cached --name-only`
|
||||
do
|
||||
if [ `git diff --cached $f |egrep -v "(POT-Creation-Date|Project-Id-Version|^\+{3}|^\-{3}|^[-+]#)" | egrep -c "^[\-\+]"` -eq 0 ]
|
||||
if [ `git diff --cached $f |egrep -v "(POT-Creation-Date|Project-Id-Version|PO-Revision-Date|^\+{3}|^\-{3}|^[-+]#)" | egrep -c "^[\-\+]"` -eq 0 ]
|
||||
then
|
||||
git reset -q $f
|
||||
git checkout -- $f
|
||||
|
Loading…
Reference in New Issue
Block a user