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>maint
parent
4ad1eada97
commit
133296f00c
|
@ -767,8 +767,6 @@ struct ref *fetch_pack(const char *dest, int nr_heads, char **heads)
|
||||||
st.st_mtime = 0;
|
st.st_mtime = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("connect to %s\n", dest);
|
|
||||||
|
|
||||||
pid = git_connect(fd, (char *)dest, uploadpack,
|
pid = git_connect(fd, (char *)dest, uploadpack,
|
||||||
verbose ? CONNECT_VERBOSE : 0);
|
verbose ? CONNECT_VERBOSE : 0);
|
||||||
if (pid < 0)
|
if (pid < 0)
|
||||||
|
|
|
@ -370,15 +370,6 @@ static int do_fetch(struct transport *transport,
|
||||||
for (rm = ref_map; rm; rm = rm->next) {
|
for (rm = ref_map; rm; rm = rm->next) {
|
||||||
if (rm->peer_ref)
|
if (rm->peer_ref)
|
||||||
read_ref(rm->peer_ref->name, rm->peer_ref->old_sha1);
|
read_ref(rm->peer_ref->name, rm->peer_ref->old_sha1);
|
||||||
|
|
||||||
printf("%s : %s\n", rm->name, rm->peer_ref ? rm->peer_ref->name : NULL);
|
|
||||||
printf(" < %s\n", sha1_to_hex(rm->old_sha1));
|
|
||||||
if (rm->peer_ref)
|
|
||||||
printf(" > %s\n", sha1_to_hex(rm->peer_ref->old_sha1));
|
|
||||||
if (!rm->peer_ref ||
|
|
||||||
hashcmp(rm->old_sha1, rm->peer_ref->old_sha1)) {
|
|
||||||
printf("%s needs update.\n", rm->name);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fetch_refs(transport, ref_map)) {
|
if (fetch_refs(transport, ref_map)) {
|
||||||
|
|
Loading…
Reference in New Issue