Skip to contentSkip to conversation

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

DISCUSSION Laurent Alebarde 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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 ? The opposite being called once for the whole file.

Regards,

Laurent.

#1 lore raw
Quoted 11 lines · Laurent Alebarde

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?

Signature · 2 lines
Matthieu Moy
http://www-verimag.imag.fr/~moy/
#2 lore raw
Quoted 8 lines · Matthieu Moy
Quoted 6 lines · Laurent Alebarde

Hi all,

Something I need clarification please :

In the documentation on gitattributes, it is said :

Quoted 8 lines
Quoted 5 lines

"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.