From: Matthieu Moy Date: Sun, 09 Jan 2011 18:55:43 GMT Subject: Re: PostScript files: textconv and "git add -p" Message-ID: In-Reply-To: <20110105051807.GB5884@sigill.intra.peff.net> Jeff King writes: > you can get what you want with: > > echo '*.ps diff=ps' >.gitattributes > git config diff.ps.textconv ps2ascii > git config diff.ps.binary true Yes, this works great. Thanks. Did I miss something, or is this undocumented? I can't find that in either man gitattributes or man git-config. > PS Your question made me very happy. I implemented "diff.*.binary" the > way I did out of a vague sense of orthogonality, but I never quite > came up with a concrete example where it was useful to set both. > Thanks for providing one. :) I vaguely remember such discussions, and may well have thought "hmm, yet another overkill stuff that nobody'll ever use" at that time ;-). -- Matthieu Moy http://www-verimag.imag.fr/~moy/