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

Re: Is the textconv filter called for each line ? or once for the file ?

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 20, 2012, 18:35 UTC
Message-ID
<7vtxy5vnk3.fsf@alter.siamese.dyndns.org>
In-Reply-To
<vpqy5nidvnx.fsf@bauges.imag.fr>
Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:
Show 16 quoted lines
> Laurent Alebarde <l.alebarde@free.fr> writes:
>
>> Hi all,
>>
>> Something I need clarification please :
>>
>> In the documentation on gitattributes, it is said :
>>
>> "A textconv, by comparison, is much more limiting. You provide a transformation
>> of the data into a line-oriented text format, and git uses its regular diff 
>> tools to generate the output."
>>
>> Does it mean that the textconv filter is called for each line ?
>
> No. What would "for each line" mean, since textconv is essentially meant
> to be called on binary files?

I think the key phrase Laurent has missed is "*into* a line-oriented text format". The input may or may not be line-oriented. The output is expected to be.

Previous: Matthieu Moy
Message 3 of 3 in “Is the textconv filter called for each line ? or once for the file ?”
  1. Laurent AlebardeJun 20, 2012
  2. Matthieu MoyJun 20, 2012
  3. Junio C HamanoJun 20, 2012

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.