git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: PostScript files: textconv and "git add -p"

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jan 9, 2011, 18:55 UTC
Message-ID
<vpqr5clsy8g.fsf@bauges.imag.fr>
In-Reply-To
<20110105051807.GB5884@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> 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/
Previous: Jeff KingNext: Jeff King
Message 3 of 7 in “PostScript files: textconv and "git add -p"”
  1. Matthieu MoyJan 4, 2011
  2. Jeff KingJan 5, 2011
  3. Matthieu MoyJan 9, 2011
  4. docs: explain diff.*.binary optionJeff King, Jan 9, 2011
  5. Matthieu MoyJan 9, 2011
  6. Junio C HamanoJan 10, 2011
  7. Jeff KingJan 11, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.