Re: [PATCH V3 1/5] Show help: -a and -g option, and 'git help <concept>' usage.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 2, 2013, 23:15 UTC
- Message-ID
- <7vd2uc8qyh.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1364942392-576-2-git-send-email-philipoakley@iee.org>
Philip Oakley <philipoakley@iee.org> writes:
Show 5 quoted lines
> Prepare for the addition of the -g --guides option to git help > and show that help is available for both concept guides, and commands. > > Signed-off-by: Philip Oakley <philipoakley@iee.org> > ---
This should come at the end after you taught the "-g" option, I think. If we stopped with 1/5, then the message will promise "git help -g" does something useful, while the code is not yet ready.
Show 18 quoted lines
> git.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/git.c b/git.c
> index 39ba6b1..2f8aa41 100644
> --- a/git.c
> +++ b/git.c
> @@ -13,7 +13,9 @@ const char git_usage_string[] =
> " <command> [<args>]";
>
> const char git_more_info_string[] =
> - N_("See 'git help <command>' for more information on a specific command.");
> + N_("'git help -a' and 'git help -g' lists available subcommands and some\n"
> + "concept guides. See 'git help <command>' or 'git help <concept>'\n"
> + "to read about a specific subcommand or concept.");
>
> static struct startup_info git_startup_info;
> static int use_pager = -1;