fetch: rename function report_set_head
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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matt Hunter committed
Jun 19, 2026 at 05:44 UTC
b4154d85de799e8bcebae9850bb892da59b78e86
1 file changed
+2
-2
builtin/fetch.c
+2
-2
@@ -1707,7 +1707,7 @@ static void set_head_advice_msg(const char *remote, const char *head_name)
1707
remote, head_name, remote, remote, head_name);
1708
}
1709
1710
-static void report_set_head(const char *remote, const char *head_name,
1710
+static void warn_set_head(const char *remote, const char *head_name,
1711
struct strbuf *buf_prev, int updateres) {
1712
struct strbuf buf_prefix = STRBUF_INIT;
1713
const char *prev_head = NULL;
@@ -1787,7 +1787,7 @@ static int set_head(const struct ref *remote_refs, struct remote *remote)
1787
if (verbosity >= 0 &&
1788
follow_remote_head == FOLLOW_REMOTE_WARN &&
1789
(!no_warn_branch || strcmp(no_warn_branch, head_name)))
1790
- report_set_head(remote->name, head_name, &b_local_head, was_detached);
1790
+ warn_set_head(remote->name, head_name, &b_local_head, was_detached);
1791
1792
cleanup:
1793
free(head_name);