[PATCH v2 4/7] fetch: rename function report_set_head
- From
Matt Hunter <m@lfurio.us>
- Date
- Jun 16, 2026, 22:25 UTC
- Message-ID
- <20260616222606.1003521-5-m@lfurio.us>
- In-Reply-To
- <20260616222606.1003521-1-m@lfurio.us>
Update to the slightly more obvious name 'warn_set_head', which matches the verbiage of the followRemoteHEAD options.
Signed-off-by: Matt Hunter <m@lfurio.us> --- builtin/fetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/builtin/fetch.c b/builtin/fetch.c index 82969e230f5a..9a45e1e7a44d 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1707,7 +1707,7 @@ static void set_head_advice_msg(const char *remote, const char *head_name) remote, head_name, remote, remote, head_name); } -static void report_set_head(const char *remote, const char *head_name, +static void warn_set_head(const char *remote, const char *head_name, struct strbuf *buf_prev, int updateres) { struct strbuf buf_prefix = STRBUF_INIT; const char *prev_head = NULL; @@ -1787,7 +1787,7 @@ static int set_head(const struct ref *remote_refs, struct remote *remote) if (verbosity >= 0 && follow_remote_head == FOLLOW_REMOTE_WARN && (!no_warn_branch || strcmp(no_warn_branch, head_name))) - report_set_head(remote->name, head_name, &b_local_head, was_detached); + warn_set_head(remote->name, head_name, &b_local_head, was_detached); cleanup: free(head_name);
-- 2.54.0