From: Jeff King Date: Thu, 10 Apr 2008 00:11:52 +0000 (-0400) Subject: git-fetch: always show status of non-tracking-ref fetches X-Git-Tag: v1.5.6-rc0~94^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e5c49826d26e71ea18ff3010ef75edb1849df7ec;p=git.git git-fetch: always show status of non-tracking-ref fetches Previously, a fetch like: git fetch git://some/url would show no ref status output (just the object downloading status, if there was any), leading to some confusion. With this patch, we now show the usual ref table, with remote refs going into FETCH_HEAD. Previously this output was shown only if "-v"erbose was specified. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/builtin-fetch.c b/builtin-fetch.c index 139a6b10c..e4486e428 100644 --- a/builtin-fetch.c +++ b/builtin-fetch.c @@ -360,12 +360,10 @@ static int store_updated_refs(const char *url, struct ref *ref_map) if (ref) update_local_ref(ref, what, verbose, note); - else if (verbose) + else sprintf(note, "* %-*s %-*s -> FETCH_HEAD", SUMMARY_WIDTH, *kind ? kind : "branch", REFCOL_WIDTH, *what ? what : "HEAD"); - else - *note = '\0'; if (*note) { if (!shown_url) { fprintf(stderr, "From %.*s\n",