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

Align git push stderr output to the same as git pull

From
SMSam McLeod <sammcj@gmail.com>
Date
Jul 10, 2014, 05:33 UTC
Message-ID
<CAEc--nsLqVP1TfWgjcrmb=-AmURw3aOV7Na_wX0SWr9isjRVfQ@mail.gmail.com>
As per: https://github.com/git/git/pull/100

'For already up-to-date repos return "Already up-to-date" which is the same message git pull returns.'

Developer's Certificate of Origin 1.1
By making a contribution to this project, I certify that:
(a) The contribution was created in whole or in part by me and I
  have the right to submit it under the open source license
  indicated in the file; or
(b) The contribution is based upon previous work that, to the best
  of my knowledge, is covered under an appropriate open source
  license and I have the right under that license to submit that
  work with modifications, whether created in whole or in part
  by me, under the same open source license (unless I am
  permitted to submit under a different license), as indicated
  in the file; or
(c) The contribution was provided directly to me by some other
  person who certified (a), (b) or (c) and I have not modified
  it.
(d) I understand and agree that this project and the contribution
  are public and that a record of the contribution (including all
  personal information I submit with it, including my sign-off) is
  maintained indefinitely and may be redistributed consistent with
  this project or the open source license(s) involved.
  Signed-off-by: Sam McLeod <sammcj@gmail.com>
diff --git a/builtin/send-pack.c b/builtin/send-pack.c
index f420b74..6fb2642 100644
--- a/builtin/send-pack.c
+++ b/builtin/send-pack.c
@@ -274,7 +274,7 @@ int cmd_send_pack(int argc, const char **argv, const char *prefix)
 	}
 
 	if (!ret && !transport_refs_pushed(remote_refs))
-		fprintf(stderr, "Everything up-to-date\n");
+		fprintf(stderr, "Already up-to-date\n");
 
 	return ret;
 }
diff --git a/transport.c b/transport.c
index 59c9727..4dd9f74 100644
--- a/transport.c
+++ b/transport.c
@@ -1220,7 +1220,7 @@ int transport_push(struct transport *transport,
 		if (porcelain && !push_ret)
 			puts("Done");
 		else if (!quiet && !ret && !transport_refs_pushed(remote_refs))
-			fprintf(stderr, "Everything up-to-date\n");
+			fprintf(stderr, "Already up-to-date\n");
 
 		return ret;
 	}
Next: Jeff King
Message 1 of 2 in “Align git push stderr output to the same as git pull”
  1. Sam McLeodJul 10, 2014
  2. Jeff KingJul 10, 2014

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.