Thread (62 messages) flat view 62 messages, 5 authors, 10h ago

Re: [PATCH v6 4/4] hook: introduce the receive-report hook

From: Patrick Steinhardt <hidden>
Date: 2026-09-03 10:04:05

On Thu, Sep 03, 2026 at 11:28:01AM +0200, Karthik Nayak wrote:
quoted hunk ↗ jump to hunk
diff --git a/builtin/receive-pack.c b/builtin/receive-pack.c
index 9ac10465ac..edfd5cf9dc 100644
--- a/builtin/receive-pack.c
+++ b/builtin/receive-pack.c
@@ -2535,6 +2570,13 @@ static void update_shallow_info(struct command *commands,
 	free(ref_status);
 }
 
+static void override_cmds_error(struct command *commands, const char *err)
+{
+	for (struct command *cmd = commands; cmd; cmd = cmd->next) {
+		cmd->error_string = err;
+	}
+}
Micronit: unnecessary curly braces.

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