diff options
-rw-r--r-- | .gitattributes | 1 | ||||
-rwxr-xr-x | g | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes index 416fa8c63b14..d414da85d0db 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,2 +1,3 @@ *.doc binary *.sdw binary +*.po filter=po @@ -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 |