From: Jeff King Date: Mon, 5 Nov 2007 05:12:18 +0000 (-0500) Subject: send-pack: require --verbose to show update of tracking refs X-Git-Tag: v1.5.4-rc0~152^2~8^2~5^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b50fa2bd061c3bb21f2918849ece43ac9ca2c504;p=git.git send-pack: require --verbose to show update of tracking refs This is really an uninteresting detail, and it just takes attention away from the actual push updates and posssible errors. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/builtin-send-pack.c b/builtin-send-pack.c index d74cc3c4a..c1fd3f5fb 100644 --- a/builtin-send-pack.c +++ b/builtin-send-pack.c @@ -195,7 +195,8 @@ static void update_tracking_ref(struct remote *remote, struct ref *ref) return; if (!remote_find_tracking(remote, &rs)) { - fprintf(stderr, "updating local tracking ref '%s'\n", rs.dst); + if (args.verbose) + fprintf(stderr, "updating local tracking ref '%s'\n", rs.dst); if (is_null_sha1(ref->peer_ref->new_sha1)) { if (delete_ref(rs.dst, NULL)) error("Failed to delete");