Skip to content

Commit e7e03f6

Browse files
authored
Exclude Language header field from git add
1 parent d8d9d62 commit e7e03f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/commit.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ set -u
2020
git status -s | grep '^ D ' | cut -d' ' -f3 | xargs -r git rm
2121

2222
# Add only updates that do not consist only of 'POT-Creation-Date' header change
23-
git diff -I'^"POT-Creation-Date: ' --numstat *.po **/*.po | cut -f3 | xargs -r git add -v
23+
git diff -I'^"POT-Creation-Date: ' -I'^"Language: pt_BR' --numstat *.po **/*.po | cut -f3 | xargs -r git add -v
2424

2525
# Add currently untracked PO files, and update other helper files
2626
untracked_files=$(git ls-files -o --exclude-standard *.po **/*.po)

0 commit comments

Comments
 (0)