diff options
author | Jeff King <peff@peff.net> | 2007-11-05 00:12:18 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2007-11-05 13:24:18 -0800 |
commit | b50fa2bd061c3bb21f2918849ece43ac9ca2c504 (patch) | |
tree | a0686f53ca23962fee0759862deff7e76cebc2be | |
parent | 3b70da2b17dc5b7df644701a96a141d8f7c5ea15 (diff) | |
download | git-b50fa2bd061c3bb21f2918849ece43ac9ca2c504.tar.gz git-b50fa2bd061c3bb21f2918849ece43ac9ca2c504.tar.xz |
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>
-rw-r--r-- | builtin-send-pack.c | 3 |
1 files changed, 2 insertions, 1 deletions
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"); |