]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git: add `--super-prefix` to usage string
authorPatrick Steinhardt <ps@pks.im>
Thu, 7 Jan 2021 06:36:47 +0000 (07:36 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Jan 2021 06:55:06 +0000 (22:55 -0800)
When the `--super-prefix` option was implmented in 74866d7579 (git: make
super-prefix option, 2016-10-07), its existence was only documented in
the manpage but not in the command's own usage string. Given that the
commit message didn't mention that this was done intentionally and given
that it's documented in the manpage, this seems like an oversight.

Add it to the usage string to fix the inconsistency.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git.c

diff --git a/git.c b/git.c
index 4b7bd77b809b1d353b591c16aab83af5ab3a6a71..194a1ecfd9006c956f9b649ec814d3d116a14ee1 100644 (file)
--- a/git.c
+++ b/git.c
@@ -29,6 +29,7 @@ const char git_usage_string[] =
           "           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
           "           [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]\n"
           "           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n"
+          "           [--super-prefix=<path>]\n"
           "           <command> [<args>]");
 
 const char git_more_info_string[] =