git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [OUTREACHY][PATCH v1] doc: fix naming of response-end-pkt
@ 2021-02-16 21:21 Joey Salazar
  2021-02-16 23:03 ` Junio C Hamano
  2021-02-17 11:07 ` Denton Liu
  0 siblings, 2 replies; 4+ messages in thread
From: Joey Salazar @ 2021-02-16 21:21 UTC (permalink / raw)
  To: git@vger.kernel.org

Git Protocol version 2[1] defines 0002 as a Message Packet that indicates
the end of a response for stateless connections.

Change the naming of the 0002 Packet to 'Response end' to match the
parsing introduced in Wireshark's MR !1922 for consistency.

[1] kernel.org/pub/software/scm/git/docs/technical/protocol-v2.html
[2] gitlab.com/wireshark/wireshark/-/merge_requests/1922

Signed-off-by: Joey Salazar <jgsal@protonmail.com>
---
 Documentation/technical/protocol-v2.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/technical/protocol-v2.txt b/Documentation/technical/protocol-v2.txt
index e597b74da39..6c55d566d8b 100644
--- a/Documentation/technical/protocol-v2.txt
+++ b/Documentation/technical/protocol-v2.txt
@@ -33,8 +33,8 @@ In protocol v2 these special packets will have the following semantics:

   * '0000' Flush Packet (flush-pkt) - indicates the end of a message
   * '0001' Delimiter Packet (delim-pkt) - separates sections of a message
-  * '0002' Message Packet (response-end-pkt) - indicates the end of a response
-    for stateless connections
+  * '0002' Response end Packet (response_end-pkt) - indicates the end of a
+    response for stateless connections

 Initial Client Request
 ----------------------
--
2.29.0.rc2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [OUTREACHY][PATCH v1] doc: fix naming of response-end-pkt
  2021-02-16 21:21 [OUTREACHY][PATCH v1] doc: fix naming of response-end-pkt Joey Salazar
@ 2021-02-16 23:03 ` Junio C Hamano
  2021-02-17 11:07 ` Denton Liu
  1 sibling, 0 replies; 4+ messages in thread
From: Junio C Hamano @ 2021-02-16 23:03 UTC (permalink / raw)
  To: Joey Salazar; +Cc: git@vger.kernel.org, Denton Liu

Joey Salazar <jgsal@protonmail.com> writes:

> Git Protocol version 2[1] defines 0002 as a Message Packet that indicates
> the end of a response for stateless connections.
>
> Change the naming of the 0002 Packet to 'Response end' to match the
> parsing introduced in Wireshark's MR !1922 for consistency.
>
> [1] kernel.org/pub/software/scm/git/docs/technical/protocol-v2.html
> [2] gitlab.com/wireshark/wireshark/-/merge_requests/1922
>
> Signed-off-by: Joey Salazar <jgsal@protonmail.com>
> ---
>  Documentation/technical/protocol-v2.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

This came from b0df0c16 (stateless-connect: send response end
packet, 2020-05-19), didn't it?

The original commit even says "response end packet" on its title, so
I am reasonably sure the patch under discussion is an improvement ;-)

Having said that, asking its author to review the change would be
the most appropriate (cc'ed).

Thanks.

>
> diff --git a/Documentation/technical/protocol-v2.txt b/Documentation/technical/protocol-v2.txt
> index e597b74da39..6c55d566d8b 100644
> --- a/Documentation/technical/protocol-v2.txt
> +++ b/Documentation/technical/protocol-v2.txt
> @@ -33,8 +33,8 @@ In protocol v2 these special packets will have the following semantics:
>
>    * '0000' Flush Packet (flush-pkt) - indicates the end of a message
>    * '0001' Delimiter Packet (delim-pkt) - separates sections of a message
> -  * '0002' Message Packet (response-end-pkt) - indicates the end of a response
> -    for stateless connections
> +  * '0002' Response end Packet (response_end-pkt) - indicates the end of a
> +    response for stateless connections
>
>  Initial Client Request
>  ----------------------
> --
> 2.29.0.rc2

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OUTREACHY][PATCH v1] doc: fix naming of response-end-pkt
  2021-02-16 21:21 [OUTREACHY][PATCH v1] doc: fix naming of response-end-pkt Joey Salazar
  2021-02-16 23:03 ` Junio C Hamano
@ 2021-02-17 11:07 ` Denton Liu
  2021-02-17 23:59   ` Joey Salazar
  1 sibling, 1 reply; 4+ messages in thread
From: Denton Liu @ 2021-02-17 11:07 UTC (permalink / raw)
  To: Joey Salazar; +Cc: git@vger.kernel.org

Hi Joey,

On Tue, Feb 16, 2021 at 09:21:50PM +0000, Joey Salazar wrote:
> Git Protocol version 2[1] defines 0002 as a Message Packet that indicates
> the end of a response for stateless connections.
> 
> Change the naming of the 0002 Packet to 'Response end' to match the
> parsing introduced in Wireshark's MR !1922 for consistency.

Thanks for catching this, this is an obvious error on my part. In fact,
I'd go as far as saying that in the commit where this was defined,
b0df0c16 (stateless-connect: send response end packet, 2020-05-19), I
erroneously called it a "Message Packet" when I meant to type "Response
End Packet", which you are now correcting.

> [1] kernel.org/pub/software/scm/git/docs/technical/protocol-v2.html
> [2] gitlab.com/wireshark/wireshark/-/merge_requests/1922
> 
> Signed-off-by: Joey Salazar <jgsal@protonmail.com>
> ---
>  Documentation/technical/protocol-v2.txt | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Documentation/technical/protocol-v2.txt b/Documentation/technical/protocol-v2.txt
> index e597b74da39..6c55d566d8b 100644
> --- a/Documentation/technical/protocol-v2.txt
> +++ b/Documentation/technical/protocol-v2.txt
> @@ -33,8 +33,8 @@ In protocol v2 these special packets will have the following semantics:
> 
>    * '0000' Flush Packet (flush-pkt) - indicates the end of a message
>    * '0001' Delimiter Packet (delim-pkt) - separates sections of a message
> -  * '0002' Message Packet (response-end-pkt) - indicates the end of a response
> -    for stateless connections
> +  * '0002' Response end Packet (response_end-pkt) - indicates the end of a
> +    response for stateless connections

A couple of aesthetic details: I see that these changes are based on MR
!1922 so if you decide to take these suggestions, you'll probably need
to apply them there too.

	1. It'd probably read better as "Response End Packet" (with the
	   "e" capitalised)

	2. The mix of underscore and hyphen in response_end-pkt is a
	   little odd, although I see that you've done it to make it
	   match the surrounding code[3].

I think that I'd prefer if 1. is taken and 2. can be ignored. But with
or without those changes, consider this patch

	Acked-by: Denton Liu <liu.denton@gmail.com>

Thanks,
Denton

[3]: https://gitlab.com/wireshark/wireshark/-/merge_requests/1922#note_502316230

>  Initial Client Request
>  ----------------------
> --
> 2.29.0.rc2
> 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [OUTREACHY][PATCH v1] doc: fix naming of response-end-pkt
  2021-02-17 11:07 ` Denton Liu
@ 2021-02-17 23:59   ` Joey Salazar
  0 siblings, 0 replies; 4+ messages in thread
From: Joey Salazar @ 2021-02-17 23:59 UTC (permalink / raw)
  To: Denton Liu; +Cc: git@vger.kernel.org

Hi Denton,

On Wednesday, February 17, 2021 5:07 AM, Denton Liu wrote:

> Hi Joey,
>
> A couple of aesthetic details: I see that these changes are based on MR
> !1922 so if you decide to take these suggestions, you'll probably need
> to apply them there too.
>
> 1. It'd probably read better as "Response End Packet" (with the
> "e" capitalised)
>
> 2. The mix of underscore and hyphen in response_end-pkt is a
> little odd, although I see that you've done it to make it
> match the surrounding code[3].

Well noted, I'll follow up shortly with PATCH v2 to incorporate both changes.

Thank you,
Joey

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-02-18  0:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-16 21:21 [OUTREACHY][PATCH v1] doc: fix naming of response-end-pkt Joey Salazar
2021-02-16 23:03 ` Junio C Hamano
2021-02-17 11:07 ` Denton Liu
2021-02-17 23:59   ` Joey Salazar

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).