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

Re: Making git push output quieter

From
Jeff King <peff@peff.net>
Date
Aug 5, 2009, 20:19 UTC
Message-ID
<20090805201937.GB9004@coredump.intra.peff.net>
In-Reply-To
<alpine.LFD.2.00.0908051545300.16073@xanadu.home>
On Wed, Aug 05, 2009 at 03:51:27PM -0400, Nicolas Pitre wrote:
Show 6 quoted lines
> > -	progress = isatty(2);
> > +	progress = isatty(1);
> 
> Doesn't this break progress reporting on a push since stdout is never a 
> tty in that case?  Same issue on a fetch although in that case the 
> progress level is provided explicitly by the caller.

It also doesn't entirely fix the original poster's problem. There are actually two outputs: the progress report and the push status. I think we actually just want a "--quiet" flag here which is passed along to pack-objects, and which suppresses the push status. Patch series to follow:

  1/3: push: add --quiet flag
  2/3: transport: pass "quiet" flag to pack-objects
  3/3: transport: don't show push status if --quiet is given
-Peff
Previous: Nicolas PitreNext: Jeff King
Message 6 of 19 in “Making git push output quieter”
  1. Albert Astals CidAug 4, 2009
  2. Pau Garcia i QuilesAug 4, 2009
  3. Albert Astals CidAug 5, 2009
  4. Shawn O. PearceAug 5, 2009
  5. Nicolas PitreAug 5, 2009
  6. Jeff KingAug 5, 2009
  7. 1/3 push: add --quiet flagJeff King, Aug 5, 2009
  8. 2/3 transport: pass "quiet" flag to pack-objectsJeff King, Aug 5, 2009
  9. 3/3 transport: don't show push status if --quiet is givenJeff King, Aug 5, 2009
  10. Sverre RabbelierAug 5, 2009
  11. Avery PennarunAug 5, 2009
  12. Sverre RabbelierAug 5, 2009
  13. Junio C HamanoAug 5, 2009
  14. Jeff KingAug 5, 2009
  15. Junio C HamanoAug 5, 2009
  16. Jeff KingAug 5, 2009
  17. Sebastian PippingAug 31, 2009
  18. Jeff KingAug 31, 2009
  19. Sebastian PippingAug 31, 2009

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.