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

2013-02-23 Thread Antoine Pelisse
Currently, when running git update-index -h, you only have usage displayed, but no options. That is not consistent with the behavior of other commands. It also means that the only way to display options is to use an unknown argument (or use the man page). Display usage with options when git

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

2013-02-23 Thread Antoine Pelisse
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