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

Re: git push output goes into stderr

From
Sitaram Chamarty <sitaramc@gmail.com>
Date
Sep 5, 2011, 04:39 UTC
Message-ID
<CAMK1S_hDCot2TgmoQ-MXivKP6+1=QUi=Pno3-pOZ=FhooN9Duw@mail.gmail.com>
In-Reply-To
<CAPgpnMQuck_aPU0ciaGgj-C8rno7jbzZ7wZ4unU8CqA0eaiYQw@mail.gmail.com>
On Sun, Sep 4, 2011 at 2:56 PM, Lynn Lin <lynn.xin.lin@gmail.com> wrote:
> Hi all,
> When I create a local branch and then push it to remote. I find that
> the output without error goes into stderr, is this expected?

when the two sides of the conversation have an established protocol to talk to each other and exchange data, any extraneous stuff (progress message, tracing/debugging logs...) will confuse the protocol. Shunting that aside to STDERR helps avoid protocol confusion.

Previous: Sitaram Chamarty
Message 8 of 8 in “git push output goes into stderr”
  1. Lynn LinSep 4, 2011
  2. Junio C HamanoSep 5, 2011
  3. Clemens BuchacherSep 6, 2011
  4. Jeff KingSep 7, 2011
  5. Sitaram ChamartySep 8, 2011
  6. Jeff KingSep 8, 2011
  7. Sitaram ChamartySep 8, 2011
  8. Sitaram ChamartySep 5, 2011

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.