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

Re: Align git push stderr output to the same as git pull

From
Jeff King <peff@peff.net>
Date
Jul 10, 2014, 20:50 UTC
Message-ID
<20140710205026.GC4459@sigill.intra.peff.net>
In-Reply-To
<CAEc--nsLqVP1TfWgjcrmb=-AmURw3aOV7Na_wX0SWr9isjRVfQ@mail.gmail.com>
On Thu, Jul 10, 2014 at 03:33:47PM +1000, Sam McLeod wrote:
> 'For already up-to-date repos return "Already up-to-date" which is the
> same message git pull returns.'

Please send your patches inline as a single body part, as generated by "git format-patch" (you can use git-send-email to send).

> Developer's Certificate of Origin 1.1
You can drop the DCO here. Your Signed-off-by line is enough.
Show 10 quoted lines
> 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");

Hrm. So this makes things consistent with git-pull, but despite the names, push and pull are not actually opposites. Push and fetch are opposites. And fetch does not say anything in the up-to-date case.

So I'd somewhat wonder whether we should just be making "push" less chatty here. Still, that is a much bigger change that some people might disagree with, and I confess I don't care overly (but nor did the Everything/Already ever bother me either :) ).

-Peff
Previous: Sam McLeod
Message 2 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.