Thread (380 messages) 380 messages, 13 authors, 2026-07-24

Re: [PATCH v7 2/6] fetch-pack: refactor packet writing

From: Peijian Ju <hidden>
Date: 2024-12-03 19:09:47

Thank you, Patrick.

Your comments make perfect sense to me, and I will revise them
accordingly to v8.


On Mon, Nov 25, 2024 at 4:51 AM Patrick Steinhardt [off-list ref] wrote:
On Mon, Nov 25, 2024 at 12:36:12AM -0500, Eric Ju wrote:
quoted
diff --git a/connect.h b/connect.h
index 1645126c17..8b56a68b62 100644
--- a/connect.h
+++ b/connect.h
@@ -1,6 +1,7 @@
 #ifndef CONNECT_H
 #define CONNECT_H

+#include "string-list.h"
 #include "protocol.h"

 #define CONNECT_VERBOSE       (1u << 0)
Instead of including this header, you can add a forward declaration of
`struct string_list`. This is mostly done to keep compilation times at
bay by not including too many headers.
quoted
@@ -30,4 +31,11 @@ void check_stateless_delimiter(int stateless_rpc,
                             struct packet_reader *reader,
                             const char *error);

+/**
+ * write_command_and_capabilities writes a command along with the requested
Nit: we don't typically use Go-style comments where the comment starts
with the name of what's being documented.

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