From eb143cac5d7418406ce310e34f1cf60ff8877bb2 Mon Sep 17 00:00:00 2001 From: vexed Date: Sun, 8 Dec 2013 00:35:51 -0500 Subject: [PATCH] When making builds and checking for modifications, we will ignore any and all po files as far as git is concerned, and after check is done, we reset our index to once again show if the po/*.po files were modified. --- build_tools/autorevision | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build_tools/autorevision b/build_tools/autorevision index 94d33a826..a21d114b6 100755 --- a/build_tools/autorevision +++ b/build_tools/autorevision @@ -95,9 +95,13 @@ gitRepo() { VCS_TYPE="git" VCS_BASENAME="$(basename "${PWD}")" - # Is the working copy clean? + # Check if working copy is clean, however, we will ignore any and all po files + # when we determine if modifications were done. + git update-index --assume-unchanged po/*.po test -z "$(git status --untracked-files=no --porcelain)" VCS_WC_MODIFIED="${?}" + # now, reset index back to normal + git update-index --no-assume-unchanged po/*.po # The full revision hash VCS_FULL_HASH="$(git rev-parse HEAD)"