git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 3/3] send-pack: require --verbose to show update of tracking refs

From
Jeff King <peff@peff.net>
Date
Nov 5, 2007, 05:12 UTC
Message-ID
<20071105051218.GC13144@sigill.intra.peff.net>
In-Reply-To
<20071105050517.GA6244@sigill.intra.peff.net>

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>
---
 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 d74cc3c..c1fd3f5 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");
-- 
1.5.3.5.1530.g7353
Previous: Jeff KingNext: Steffen Prohaska
Message 4 of 6 in “more terse push output”
  1. 0/3 more terse push outputJeff King, Nov 5, 2007
  2. 1/3 more terse push outputJeff King, Nov 5, 2007
  3. 2/3 receive-pack: don't mention successful updatesJeff King, Nov 5, 2007
  4. 3/3 send-pack: require --verbose to show update of tracking refsJeff King, Nov 5, 2007
  5. Steffen ProhaskaNov 5, 2007
  6. Junio C HamanoNov 5, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.