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

Re: [PATCH 2/2] git-remote: add verbose mode to git remote update

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 19, 2008, 01:53 UTC
Message-ID
<7vod0ctrak.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<1227006242-21290-1-git-send-email-crquan@gmail.com>
crquan@gmail.com writes:
Show 11 quoted lines
> From: Cheng Renquan <crquan@gmail.com>
>
> Pass the verbose mode parameter to the underlying fetch command.
>
>   $ ./git remote -v update
>   Updating origin
>   From git://git.kernel.org/pub/scm/git/git
>   ...
> Signed-off-by: Cheng Renquan <crquan@gmail.com>
> ---
>   So now the patch looks very simple.
Indeed it does ;-), but there still is a minor nit.
> +	"git remote update [-v | --verbose] [group]",

Notice the difference between the example in your commit log message and the help text?

I think "git remote [options] [cmd] [more options]" which is the current option parser seems to try doing is very misguided, and a longer term fix-up might be to redo the cmd_remote() option parser, but in the short term, let's apply your patch with the following minor fixup:

diff --git c/builtin-remote.c w/builtin-remote.c
index 0af742b..abc8dd8 100644
--- c/builtin-remote.c
+++ w/builtin-remote.c
@@ -14,7 +14,7 @@ static const char * const builtin_remote_usage[] = {
 	"git remote rm <name>",
 	"git remote show [-n] <name>",
 	"git remote prune [-n | --dry-run] <name>",
-	"git remote update [-v | --verbose] [group]",
+	"git remote [-v | --verbose] update [group]",
 	NULL
 };
 
Previous: crquan@gmail.com
Message 2 of 2 in “git-remote: add verbose mode to git remote update”
  1. 2/2 git-remote: add verbose mode to git remote updatecrquan@gmail.com, Nov 18, 2008
  2. Junio C HamanoNov 19, 2008

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.