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

Re: [PATCH 3/4] git-push: send "To <remoteurl>" messages to the standard output in --porcelain mode

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 11, 2010, 23:19 UTC
Message-ID
<7veikrs6m1.fsf@alter.siamese.dyndns.org>
In-Reply-To
<be6fef0d1002111454w10ad965ej72699d1e185d2a9f@mail.gmail.com>
Tay Ray Chuan <rctay89@gmail.com> writes:
Show 5 quoted lines
> If that's the case, then perhaps the "To: <destination>" lines should
> be sent to both stdout and stderr - stdout, for porcelain scripts as a
> "header", and stderr, to help the user make sense of any errors that
> occur ("oh, these errors were triggered when pushing to so-and-so
> remote").

Under --porcelain, to show or not to show is under control of the calling script. Not sending it to standard error stream doesn't cause any harm, as the calling script can choose to echo it out to its standard error (or standard output).

Previous: Tay Ray ChuanNext: Larry D'Anna
Message 5 of 6 in “git-push: fix an error message so it goes to stderr”
  1. 1/4 git-push: fix an error message so it goes to stderrLarry D'Anna, Feb 9, 2010
  2. 2/4 git-push: squelch advice message if in --porcelain modeLarry D'Anna, Feb 9, 2010
  3. 3/4 git-push: send "To <remoteurl>" messages to the standard output in --porcelain modeLarry D'Anna, Feb 9, 2010
  4. Tay Ray ChuanFeb 11, 2010
  5. Junio C HamanoFeb 11, 2010
  6. 4/4 git-push: make git push --dry-run --porcelain exit with status 0 even if updates will be rejectedLarry D'Anna, Feb 9, 2010

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.