On 09/27, Junio C Hamano wrote:
> Junio C Hamano writes:
>
> >> +enum protocol_version determine_protocol_version_server(void)
> >> +{
> >> + const char *git_protocol = getenv(GIT_PROTOCOL_ENVIRONMENT);
> >> + enum protocol_version version = protocol_v0;
> >> +
> >> + if
On 09/27, Junio C Hamano wrote:
> Brandon Williams writes:
>
> > +`GIT_PROTOCOL`::
> > + For internal use only. Used in handshaking the wire protocol.
> > + Contains a colon ':' separated list of keys with optional values
> > + 'key[=value]'. Presence of unknown keys
On 09/26, Stefan Beller wrote:
> > +extern enum protocol_version get_protocol_version_config(void);
> > +extern enum protocol_version determine_protocol_version_server(void);
> > +extern enum protocol_version determine_protocol_version_client(const char
> > *server_response);
>
> It would be
Junio C Hamano writes:
>> +enum protocol_version determine_protocol_version_server(void)
>> +{
>> +const char *git_protocol = getenv(GIT_PROTOCOL_ENVIRONMENT);
>> +enum protocol_version version = protocol_v0;
>> +
>> +if (git_protocol) {
>> +struct
> +extern enum protocol_version get_protocol_version_config(void);
> +extern enum protocol_version determine_protocol_version_server(void);
> +extern enum protocol_version determine_protocol_version_client(const char
> *server_response);
It would be cool to have some documentation here.
Brandon Williams writes:
> +`GIT_PROTOCOL`::
> + For internal use only. Used in handshaking the wire protocol.
> + Contains a colon ':' separated list of keys with optional values
> + 'key[=value]'. Presence of unknown keys must be tolerated.
Is this meant to be
Create protocol.{c,h} and provide functions which future servers and
clients can use to determine which protocol to use or is being used.
Also introduce the 'GIT_PROTOCOL' environment variable which will be
used to communicate a colon separated list of keys with optional values
to a server.
7 matches
Mail list logo