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

Re: [PATCH] git.c: make usage match manual page

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 11, 2013, 19:58 UTC
Message-ID
<7vli9t909a.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1363031055-13562-1-git-send-email-kevin@bracey.fi>
Kevin Bracey <kevin@bracey.fi> writes:
> Re-ordered option list in command-line usage to match the manual page.
> Also makes it less than 80-characters wide.
Thanks (s/Re-ordered/reorder/ and s/makes/make/, though).

Is git.c the only one whose "-h" output does not match the manual synopsis?

Show 23 quoted lines
>
> Signed-off-by: Kevin Bracey <kevin@bracey.fi>
> ---
>  git.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/git.c b/git.c
> index d33f9b3..2a98624 100644
> --- a/git.c
> +++ b/git.c
> @@ -6,10 +6,10 @@
>  #include "run-command.h"
>  
>  const char git_usage_string[] =
> -	"git [--version] [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
> +	"git [--version] [--help] [-c name=value]\n"
> +	"           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
>  	"           [-p|--paginate|--no-pager] [--no-replace-objects] [--bare]\n"
>  	"           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n"
> -	"           [-c name=value] [--help]\n"
>  	"           <command> [<args>]";
>  
>  const char git_more_info_string[] =
Previous: Kevin BraceyNext: Kevin Bracey
Message 2 of 4 in “git.c: make usage match manual page”
  1. git.c: make usage match manual pageKevin Bracey, Mar 11, 2013
  2. Junio C HamanoMar 11, 2013
  3. Kevin BraceyMar 11, 2013
  4. git.c: rearrange git synopsis to fit in 80 columnsKevin Bracey, Mar 11, 2013

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.