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>main
parent
f8a7bbf09d
commit
b4154d85de
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue