summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7134973)
raw | patch | inline | side by side (parent: 7134973)
author | Jeff King <peff@peff.net> | |
Thu, 10 Apr 2008 00:11:52 +0000 (20:11 -0400) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 10 Apr 2008 08:02:59 +0000 (01:02 -0700) |
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>
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>
builtin-fetch.c | patch | blob | history |
diff --git a/builtin-fetch.c b/builtin-fetch.c
index 139a6b10c50d38fa3caf224e8031a152eac1a22e..e4486e428625f781877749b86388f1e1795d0e03 100644 (file)
--- a/builtin-fetch.c
+++ b/builtin-fetch.c
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",