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

Re: [PATCH 3/3] transport: don't show push status if --quiet is given

From
Jeff King <peff@peff.net>
Date
Aug 5, 2009, 21:17 UTC
Message-ID
<20090805211700.GA24697@coredump.intra.peff.net>
In-Reply-To
<7vws5ix9dz.fsf@alter.siamese.dyndns.org>
On Wed, Aug 05, 2009 at 02:01:44PM -0700, Junio C Hamano wrote:
Show 10 quoted lines
> What I meant was that I'd still want to see the non-verbose part of
> print_push_status(), while suppressing the progress report.  That would
> make mails coming from the cron job much more pleasant to read.
> 
> If you somehow can automatically squelch progress without -q for an
> unattended invocation (e.g. cron jobs), then I wouldn't need to pass -q
> and everything will be good.  But if I have to pass -q in order to squelch
> progress, I do not want that same -q to automatically also mean "no status
> output", which is what your 3/3 is about, if I am reading the patch
> correctly.  That's all.

Hmm. Doesn't that already work? pack-objects checks isatty(2) already before outputting progress, which means it should be suppressed when run via cron (the original poster is seeing it, though, which maybe means some crons allocate a terminal?).

But it sounds like git already does what you want; this extra "-q" would really be more about shutting up the ref status. If you really wanted to control them separately (e.g., because your isatty check is not reliable), then maybe it should be split into "--quiet" and "--no-progress"?

-Peff
Previous: Junio C HamanoNext: Sebastian Pipping
Message 16 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.