Thread (40 messages) flat view 40 messages, 4 authors, 2016-08-18

Re: [PATCH v5 14/15] convert: add filter.<driver>.process option

From: Lars Schneider <hidden>
Date: 2016-08-12 17:14:07

Possibly related (same subject, not in this thread)

On 12 Aug 2016, at 19:07, Stefan Beller [off-list ref] wrote:

On Fri, Aug 12, 2016 at 9:59 AM, Lars Schneider
[off-list ref] wrote:
quoted
The welcome message is necessary to distinguish the long running
filter protocol (v2) from the current one-shot filter protocol (v1).
This is becomes important if a users tries to use a v1 clean/smudge
filter with the v2 git config settings.
Oh I see, that's why we're at v2 now.
How do you distinguish between v1 and v2? Does the welcome message
need to follow a certain pattern to be recognized to make it v2+ ?
v1 has no format at all. It works like this:

1. Git starts the filter process
2. Git writes the entire file via stdin to the filter process
3. Git reads the result via stdout from the filter process
3. Git stops the filter process


Any v2+ would need to deal with the following:

packet:          git> git-filter-client
packet:          git> version=2
packet:          git> version=2+
packet:          git> 0000
packet:          git< git-filter-server

Everything after could be different in v2+ compared to v2.

Thanks,
Lars
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help