Remove unnecessary debugging from builtin-fetch
The older git-fetch client did not produce all of this debugging information to stdout. Most end-users and Porcelain (e.g. StGIT, git-gui, qgit) do not want to see these low-level details on the console so they should be removed. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Shawn O. Pearce committed
Sep 14, 2007 at 03:31 UTC
133296f00cd441b5525ccc3e82ee13cbfc62d246
2 files changed
-11
builtin-fetch-pack.c
-2
@@ -767,8 +767,6 @@ struct ref *fetch_pack(const char *dest, int nr_heads, char **heads)
767
st.st_mtime = 0;
768
}
769
770
- printf("connect to %s\n", dest);
771
-
770
pid = git_connect(fd, (char *)dest, uploadpack,
771
verbose ? CONNECT_VERBOSE : 0);
772
if (pid < 0)
builtin-fetch.c
-9
@@ -370,15 +370,6 @@ static int do_fetch(struct transport *transport,
370
for (rm = ref_map; rm; rm = rm->next) {
371
if (rm->peer_ref)
372
read_ref(rm->peer_ref->name, rm->peer_ref->old_sha1);
373
-
374
- printf("%s : %s\n", rm->name, rm->peer_ref ? rm->peer_ref->name : NULL);
375
- printf(" < %s\n", sha1_to_hex(rm->old_sha1));
376
- if (rm->peer_ref)
377
- printf(" > %s\n", sha1_to_hex(rm->peer_ref->old_sha1));
378
- if (!rm->peer_ref ||
379
- hashcmp(rm->old_sha1, rm->peer_ref->old_sha1)) {
380
- printf("%s needs update.\n", rm->name);
381
- }
373
}
374
375
if (fetch_refs(transport, ref_map)) {