set .gitattributes filter for *.po files

This commit is contained in:
Andras Timar
2011-03-23 19:23:49 +01:00
parent 5fa0eba1c2
commit a5ca1dcb91
2 changed files with 7 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
*.doc binary
*.sdw binary
*.po filter=po
+6
View File
@@ -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