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.