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

Re: [PATCH] update-index: allow "-h" to also display options

From
Antoine Pelisse <apelisse@gmail.com>
Date
Feb 23, 2013, 18:13 UTC
Message-ID
<CALWbr2x4En9qof7hFL+Onh1M1080=-OaJtAsNYY01qRj5R1a1w@mail.gmail.com>
In-Reply-To
<1361643041-19036-1-git-send-email-apelisse@gmail.com>
Show 13 quoted lines
> diff --git a/builtin/update-index.c b/builtin/update-index.c
> index ada1dff..3071ee6 100644
> --- a/builtin/update-index.c
> +++ b/builtin/update-index.c
> @@ -796,7 +796,7 @@ int cmd_update_index(int argc, const char **argv, const char *prefix)
>         };
>
>         if (argc == 2 && !strcmp(argv[1], "-h"))
> -               usage(update_index_usage[0]);
> +               usage_with_options(&update_index_usage[0], options);
>
>         git_config(git_default_config, NULL);
>
Ok I just realized that
    usage_with_options(update_index_usage, options);
would be better...
Antoine,
Previous: Antoine PelisseNext: Junio C Hamano
Message 2 of 3 in “update-index: allow "-h" to also display options”
  1. update-index: allow "-h" to also display optionsAntoine Pelisse, Feb 23, 2013
  2. Antoine PelisseFeb 23, 2013
  3. Junio C HamanoFeb 23, 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.