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

Re: [PATCH] Document git push -q

From
Jeff King <peff@peff.net>
Date
Oct 19, 2009, 04:01 UTC
Message-ID
<20091019040119.GA7170@coredump.intra.peff.net>
In-Reply-To
<20091018235240.GU6115@genesis.frugalware.org>
On Mon, Oct 19, 2009 at 01:52:40AM +0200, Miklos Vajna wrote:
Show 14 quoted lines
> diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
> index ba6a8a2..beb3422 100644
> --- a/Documentation/git-push.txt
> +++ b/Documentation/git-push.txt
> @@ -138,6 +138,12 @@ useful if you write an alias or script around 'git-push'.
>  --verbose::
>  	Run verbosely.
>  
> +-q::
> +--quiet::
> +	Some transports produce output even without `--verbose` turned
> +	on. This provides a way to tell them to be more quiet (whereas
> +	simply redirecting might lose error messages).
> +
Thanks, though two complaints:
  1. This is not just about "some transports". Some of the quieted code
     is in transport_push, so hopefully it applies to all transports
     once they follow that code path (though we also pass the quiet flag
     on to pack-objects, so that part is about "some transports".
  2. Maybe it would be more helpful to the user to describe what is
     shown and what is not. I think we want to claim to suppress all
     non-error output (since that was the intent of the recent patches).
     If that is not true for some transport, then we need to fix passing
     --quiet to that transport.

...Ah, I see your confusion. You read the log for afdeeb00, but there were some follow-on patches that impacted others part of push. :)

So maybe this instead:
-- >8 --
Subject: [PATCH] document push's new quiet option
Signed-off-by: Jeff King <peff@peff.net>
---
 Documentation/git-push.txt |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/Documentation/git-push.txt b/Documentation/git-push.txt
index ba6a8a2..37c8895 100644
--- a/Documentation/git-push.txt
+++ b/Documentation/git-push.txt
@@ -138,6 +138,11 @@ useful if you write an alias or script around 'git-push'.
 --verbose::
 	Run verbosely.
 
+-q::
+--quiet::
+	Suppress all output, including the listing of updated refs,
+	unless an error occurs.
+
 include::urls-remotes.txt[]
 
 OUTPUT
-- 
1.6.5.1.121.g65c47
Previous: Junio C HamanoNext: Junio C Hamano
Message 17 of 18 in “[ANNOUNCE] GIT 1.6.5”
  1. Junio C HamanoOct 11, 2009
  2. Steven NoonanOct 11, 2009
  3. Steven NoonanOct 11, 2009
  4. Junio C HamanoOct 11, 2009
  5. Steven NoonanOct 11, 2009
  6. Jakub NarebskiOct 14, 2009
  7. Sebastian PippingOct 18, 2009
  8. Document git push -qMiklos Vajna, Oct 18, 2009
  9. git push: remove incomplete options list from help textNanako Shiraishi, Oct 19, 2009
  10. Junio C HamanoOct 19, 2009
  11. git push: say that --tag can't be used with --all or --mirror in help textNanako Shiraishi, Oct 19, 2009
  12. Jeff KingOct 19, 2009
  13. Jeff KingOct 21, 2009
  14. Nanako ShiraishiOct 21, 2009
  15. Jeff KingOct 19, 2009
  16. Junio C HamanoOct 19, 2009
  17. Jeff KingOct 19, 2009
  18. Junio C HamanoOct 19, 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.