From: Michael J Gruber Date: Mon, 11 Apr 2011 10:41:10 GMT Subject: Re: gitattributes - clean filter invoked on pull? Message-ID: <4DA2DAC6.1010009@drmicha.warpmail.net> In-Reply-To: <20110411101614.GB5146@genesis.frugalware.org> Miklos Vajna venit, vidit, dixit 11.04.2011 12:16: > On Mon, Apr 11, 2011 at 11:50:09AM +0200, Michael J Gruber wrote: >> But maybe there is a better solution for your actual use case? Do you >> want to ignore line wrap or normalise it? > > I want to avoid those, so we get readable diffs, whatever line width the > different translator tools are using. (If tool1 is using 72 and tool2 is > using 80, then it would reformat the whole file.) > > Do you have a better idea than > > git config filter.po.clean 'msgcat - --no-wrap' > > ? git config diff.po.textconv 'msgcat - --no-wrap' git config diff.po.cachetextconv true If you want to normalise the repo, you may want to look at hooks instead of clean/smudge if they are a performance problem. Michael