{"thread":{"id":"30848","subject":"Is the textconv filter called for each line ? or once for the file ?","startedAt":"2012-06-20T10:57:33Z","lastAt":"2012-06-20T18:35:40Z","messageCount":3,"participants":["Laurent Alebarde","Matthieu Moy","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"193927","messageId":"loom.20120620T125636-763@post.gmane.org","threadId":"30848","inReplyTo":null,"subject":"Is the textconv filter called for each line ? or once for the file ?","fromName":"Laurent Alebarde","fromEmail":"l.alebarde@free.fr","sentAt":"2012-06-20T10:57:33Z","receivedAt":"2012-06-20T10:57:33Z","isPatch":false,"sender":{"key":"l.alebarde@free.fr","avatar":"https://gravatar.com/avatar/fda8e675abcdda4aa434c0ba02e5765afadb490c4017a9e9d03cc63f0fa290f0?d=mp&s=160"},"body":"Hi all,\n\nSomething I need clarification please :\n\nIn the documentation on gitattributes, it is said :\n\n\"A textconv, by comparison, is much more limiting. You provide a transformation\nof the data into a line-oriented text format, and git uses its regular diff \ntools to generate the output.\"\n\nDoes it mean that the textconv filter is called for each line ? The opposite\nbeing called once for the whole file.\n\nRegards,\n\n\nLaurent.\n"},{"id":"193929","messageId":"vpqy5nidvnx.fsf@bauges.imag.fr","threadId":"30848","inReplyTo":"loom.20120620T125636-763@post.gmane.org","subject":"Re: Is the textconv filter called for each line ? or once for the file ?","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2012-06-20T12:17:54Z","receivedAt":"2012-06-20T12:17:54Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Laurent Alebarde <l.alebarde@free.fr> writes:\n\n> Hi all,\n>\n> Something I need clarification please :\n>\n> In the documentation on gitattributes, it is said :\n>\n> \"A textconv, by comparison, is much more limiting. You provide a transformation\n> of the data into a line-oriented text format, and git uses its regular diff \n> tools to generate the output.\"\n>\n> Does it mean that the textconv filter is called for each line ?\n\nNo. What would \"for each line\" mean, since textconv is essentially meant\nto be called on binary files?\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"193963","messageId":"7vtxy5vnk3.fsf@alter.siamese.dyndns.org","threadId":"30848","inReplyTo":"vpqy5nidvnx.fsf@bauges.imag.fr","subject":"Re: Is the textconv filter called for each line ? or once for the file ?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-06-20T18:35:40Z","receivedAt":"2012-06-20T18:35:40Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:\n\n> Laurent Alebarde <l.alebarde@free.fr> writes:\n>\n>> Hi all,\n>>\n>> Something I need clarification please :\n>>\n>> In the documentation on gitattributes, it is said :\n>>\n>> \"A textconv, by comparison, is much more limiting. You provide a transformation\n>> of the data into a line-oriented text format, and git uses its regular diff \n>> tools to generate the output.\"\n>>\n>> Does it mean that the textconv filter is called for each line ?\n>\n> No. What would \"for each line\" mean, since textconv is essentially meant\n> to be called on binary files?\n\nI think the key phrase Laurent has missed is \"*into* a line-oriented\ntext format\".  The input may or may not be line-oriented.  The\noutput is expected to be.\n"}]}