Skip to content

Commit 9b715ad

Browse files
disposedtrolleygitster
authored andcommitted
doc: clean up usage documentation for --no-* opts
We'll be adding another option to the --no-* class of options soon. Clean up the existing options by grouping them together in the OPTIONS section, and adding missing ones to the SYNOPSIS. Signed-off-by: James Liu <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d4cc1ec commit 9b715ad

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

Documentation/git.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ SYNOPSIS
1111
[verse]
1212
'git' [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>]
1313
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
14-
[-p|--paginate|-P|--no-pager] [--no-replace-objects] [--bare]
15-
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
16-
[--config-env=<name>=<envvar>] <command> [<args>]
14+
[-p|--paginate|-P|--no-pager] [--no-replace-objects] [--no-lazy-fetch]
15+
[--no-optional-locks] [--bare] [--git-dir=<path>] [--work-tree=<path>]
16+
[--namespace=<name>] [--config-env=<name>=<envvar>] <command> [<args>]
1717

1818
DESCRIPTION
1919
-----------
@@ -186,6 +186,10 @@ If you just want to run git as if it was started in `<path>` then use
186186
This is equivalent to setting the `GIT_NO_LAZY_FETCH`
187187
environment variable to `1`.
188188

189+
--no-optional-locks::
190+
Do not perform optional operations that require locks. This is
191+
equivalent to setting the `GIT_OPTIONAL_LOCKS` to `0`.
192+
189193
--literal-pathspecs::
190194
Treat pathspecs literally (i.e. no globbing, no pathspec magic).
191195
This is equivalent to setting the `GIT_LITERAL_PATHSPECS` environment
@@ -207,10 +211,6 @@ If you just want to run git as if it was started in `<path>` then use
207211
Add "icase" magic to all pathspec. This is equivalent to setting
208212
the `GIT_ICASE_PATHSPECS` environment variable to `1`.
209213

210-
--no-optional-locks::
211-
Do not perform optional operations that require locks. This is
212-
equivalent to setting the `GIT_OPTIONAL_LOCKS` to `0`.
213-
214214
--list-cmds=<group>[,<group>...]::
215215
List commands by group. This is an internal/experimental
216216
option and may change or be removed in the future. Supported

git.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ struct cmd_struct {
3636
const char git_usage_string[] =
3737
N_("git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>]\n"
3838
" [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]\n"
39-
" [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]\n"
40-
" [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]\n"
41-
" [--config-env=<name>=<envvar>] <command> [<args>]");
39+
" [-p | --paginate | -P | --no-pager] [--no-replace-objects] [--no-lazy-fetch]\n"
40+
" [--no-optional-locks] [--bare] [--git-dir=<path>] [--work-tree=<path>]\n"
41+
" [--namespace=<name>] [--config-env=<name>=<envvar>] <command> [<args>]");
4242

4343
const char git_more_info_string[] =
4444
N_("'git help -a' and 'git help -g' list available subcommands and some\n"

0 commit comments

Comments
 (0)