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

Re: please add link / url to remote - when - git push

From
Jeff King <peff@peff.net>
Date
Oct 30, 2023, 09:39 UTC
Message-ID
<20231030093919.GF84866@coredump.intra.peff.net>
In-Reply-To
<20231030093023.GG6241@kitsune.suse.cz>
On Mon, Oct 30, 2023 at 10:30:23AM +0100, Michal Suchánek wrote:
Show 10 quoted lines
> > > On the other hand, option to NOT display those remote messages is also
> > > missing. At least with git 2.35 they are displayed even when -q argument
> > > is given.
> > 
> > That is also up to GitHub to fix on the server side:
> > 
> >   https://lore.kernel.org/git/20230519090559.GA3515410@coredump.intra.peff.net/
> 
> If the server did not reject the push the messages it returns could be
> considered informational.

Hmm, yeah, I could perhaps buy that line of argument. Though it's possible they are "warnings" of the sort that should still be emitted with "--quiet"; really only the server knows. And note that even "reject the push" is not necessarily all-or-nothing. The server may accept some subset of the refs.

But...
> Not sure if the final status of the push is available or of the
> rejection is only noted in these messages, though.

Yes, this is a problem. Those messages are streamed out as we receive them from the server, and before we get any status report back. I don't think we'd want to buffer them, as they can be arbitrarily large (and may even be progress reports that are meant to be shown in real-time).

-Peff
Previous: Michal SuchánekNext: Michal Suchánek
Message 7 of 11 in “please add link / url to remote - when - git push”
  1. Alexander MillsOct 29, 2023
  2. Torsten BögershausenOct 30, 2023
  3. Junio C HamanoOct 30, 2023
  4. Michal SuchánekOct 30, 2023
  5. Jeff KingOct 30, 2023
  6. Michal SuchánekOct 30, 2023
  7. Jeff KingOct 30, 2023
  8. Michal SuchánekOct 30, 2023
  9. Jeff KingOct 30, 2023
  10. Michal SuchánekOct 30, 2023
  11. Taylor BlauOct 30, 2023

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.