From 7e0aded1f3bced4b49d8bcd597b46efce10cde67 Mon Sep 17 00:00:00 2001 From: Rafael Fontenelle Date: Mon, 19 May 2025 00:21:21 -0300 Subject: [PATCH] Add more header exceptions to commit.sh Reduce noise in commits --- scripts/commit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/commit.sh b/scripts/commit.sh index fb1b752e2..86c6d8f12 100755 --- a/scripts/commit.sh +++ b/scripts/commit.sh @@ -19,8 +19,8 @@ set -u # Set for removal the deleted obsolete PO files git status -s | grep '^ D ' | cut -d' ' -f3 | xargs -r git rm -# Add only updates that do not consist only of 'POT-Creation-Date' header change -git diff -I'^"POT-Creation-Date: ' -I'^"Language: pt_BR' --numstat *.po **/*.po | cut -f3 | xargs -r git add -v +# Add only updates that do not consist only of the following header lines +git diff -I'^# Copyright ' -I'^"Project-Id-Version: ' -I'^"POT-Creation-Date: ' -I'^"Language: ' --numstat *.po **/*.po | cut -f3 | xargs -r git add -v # Add currently untracked PO files, and update other helper files untracked_files=$(git ls-files -o --exclude-standard *.po **/*.po)