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

What's the idea of specifying binary=true together with textconv?

From
Ilya Kantor <iliakan@gmail.com>
Date
Sep 27, 2017, 19:06 UTC
Message-ID
<CAFU8umg2cgmmCvGYbu0P3M02AMcttUfTCFGTUcsF7shd80XwSw@mail.gmail.com>
Hello,
When textconv is specified, the program is always used for conversion.
E.g. consider this:
[diff "png"]
  textconv = wc

Even if a png file is ASCII (manually created), wc gets called, and the result is made of its output.

So, the question is: why should one specify binary = true together with textconv?

There is an example in docs:
[diff "ps"]
  textconv = ps2ascii
  binary = true

...But what binary = true does here? Even if we remove it, textconv is called for all ps-files.

--- Best Regards, Ilya Kantor

Next: Jeff King
Message 1 of 2 in “What's the idea of specifying binary=true together with textconv?”
  1. Ilya KantorSep 27, 2017
  2. Jeff KingSep 27, 2017

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.