Re: [RFC 3/7] protocol: tell server that the client understands v2

3 messages, 2 authors, 2017-08-25 · open the first message on its own page

Re: [RFC 3/7] protocol: tell server that the client understands v2

From: Junio C Hamano <hidden>
Date: 2017-08-25 17:45:10

Brandon Williams [off-list ref] writes:
+		/* If using a new version put that stuff here after a second null byte */
+		strbuf_addch(&request, '\0');
+		strbuf_addf(&request, "version=%d%c", 2, '\0');
+		/* subsequent supported versions can also be added */
+		strbuf_addf(&request, "version=%d%c", 3, '\0');
Isn't this last one meant only as a comment?

Re: [RFC 3/7] protocol: tell server that the client understands v2

From: Brandon Williams <hidden>
Date: 2017-08-25 18:53:28

On 08/25, Junio C Hamano wrote:
Brandon Williams [off-list ref] writes:
quoted
+		/* If using a new version put that stuff here after a second null byte */
+		strbuf_addch(&request, '\0');
+		strbuf_addf(&request, "version=%d%c", 2, '\0');
+		/* subsequent supported versions can also be added */
+		strbuf_addf(&request, "version=%d%c", 3, '\0');
Isn't this last one meant only as a comment?
Sorry since this was structured as an RFC I didn't go back through the
code with a fine tooth comb to ensure I removed or commented out any
debugging statements.  Stefan also pointed out to me that I left in an
if (0) statement somewhere haha.

-- 
Brandon Williams

Re: [RFC 3/7] protocol: tell server that the client understands v2

From: Brandon Williams <hidden>
Date: 2017-08-25 18:55:13

On 08/25, Brandon Williams wrote:
On 08/25, Junio C Hamano wrote:
quoted
Brandon Williams [off-list ref] writes:
quoted
+		/* If using a new version put that stuff here after a second null byte */
+		strbuf_addch(&request, '\0');
+		strbuf_addf(&request, "version=%d%c", 2, '\0');
+		/* subsequent supported versions can also be added */
+		strbuf_addf(&request, "version=%d%c", 3, '\0');
Isn't this last one meant only as a comment?
Sorry since this was structured as an RFC I didn't go back through the
code with a fine tooth comb to ensure I removed or commented out any
debugging statements.  Stefan also pointed out to me that I left in an
if (0) statement somewhere haha.
Oh one more thing about this line.  I added it to show (and check) that
git-daemon would be able to cope with more than one field being added as
I wanted to avoid the issue we had when adding the 'host' field where
additional fields aren't allowed as they aren't gracefully ignored by
the server.

-- 
Brandon Williams
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help