[Libreoffice-commits] .: g .gitattributes
Andras Timar
timar at kemper.freedesktop.org
Wed Mar 23 12:15:13 PDT 2011
.gitattributes | 1 +
g | 6 ++++++
2 files changed, 7 insertions(+)
New commits:
commit 41da20d61f50eefb0b106893ee815800c386c827
Author: Andras Timar <timar at fsf.hu>
Date: Wed Mar 23 19:23:49 2011 +0100
set .gitattributes filter for *.po files
diff --git a/.gitattributes b/.gitattributes
index 416fa8c..d414da8 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,2 +1,3 @@
*.doc binary
*.sdw binary
+*.po filter=po
diff --git a/g b/g
index 7fbf683..2d601b5 100755
--- a/g
+++ b/g
@@ -38,6 +38,12 @@ function update_hooks()
if [ "$PWD" != "$RAWBUILDDIR" -a ! -e .gitattributes ]; then
ln -s $RAWBUILDDIR/.gitattributes .
fi
+ if [ -z "$(git config filter.po.clean)" ] ; then
+ git config filter.po.clean 'msgcat - --no-wrap'
+ fi
+ if [ -z "$(git config filter.po.smudge)" ] ; then
+ git config filter.po.smudge cat
+ fi
}
# extra params for some commands, like log
More information about the Libreoffice-commits
mailing list