From a5ca1dcb91d6aa6e4943ac99e402e0ed660a8392 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Wed, 23 Mar 2011 19:23:49 +0100 Subject: set .gitattributes filter for *.po files --- g | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'g') diff --git a/g b/g index 7fbf6834764d..2d601b5e09f8 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 -- cgit