@matheusbsbs / matheus-bagliano / commits / e5c49826d2
Fork 0

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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Apr 9, 2008 at 20:11 UTC e5c49826d26e71ea18ff3010ef75edb1849df7ec
1 file changed +1 -3
builtin-fetch.c
+1 -3
@@ -360,12 +360,10 @@ static int store_updated_refs(const char *url, struct ref *ref_map)
360
361 if (ref)
362 update_local_ref(ref, what, verbose, note);
363 - else if (verbose)
363 + else
364 sprintf(note, "* %-*s %-*s -> FETCH_HEAD",
365 SUMMARY_WIDTH, *kind ? kind : "branch",
366 REFCOL_WIDTH, *what ? what : "HEAD");
367 - else
368 - *note = '\0';
367 if (*note) {
368 if (!shown_url) {
369 fprintf(stderr, "From %.*s\n",