Thread (1 message) 1 message, 1 author, 2020-09-10

Re: [PATCH v4 8/9] commit: use config-based hooks

From: Junio C Hamano <hidden>
Date: 2020-09-10 22:21:55

Phillip Wood [off-list ref] writes:
quoted
+	const char *arg;
+	struct strvec hook_args = STRVEC_INIT;
+	struct strbuf hook_name = STRBUF_INIT;
  	int ret;
  +	strbuf_addstr(&hook_name, name);
Seeing this makes me wonder if it would be better for run_hooks() to
take a string for the name rather than an strbuf, I suspect that
virtually all callers have a fixed hook name.
Yeah, that is a good point.  It is always a good discipline to keep
the type of the parameters callers need to pass to the minimum.


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