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

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

Jeff King committed Nov 5, 2007 at 00:12 UTC b50fa2bd061c3bb21f2918849ece43ac9ca2c504
1 file changed +2 -1
builtin-send-pack.c
+2 -1
@@ -195,7 +195,8 @@ static void update_tracking_ref(struct remote *remote, struct ref *ref)
195 return;
196
197 if (!remote_find_tracking(remote, &rs)) {
198 - fprintf(stderr, "updating local tracking ref '%s'\n", rs.dst);
198 + if (args.verbose)
199 + fprintf(stderr, "updating local tracking ref '%s'\n", rs.dst);
200 if (is_null_sha1(ref->peer_ref->new_sha1)) {
201 if (delete_ref(rs.dst, NULL))
202 error("Failed to delete");