Skip to content

Commit d333f67

Browse files
pcloudsgitster
authored andcommitted
git-checkout.txt: spell out --no-option
It's easier to search for and also less cryptic. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent e902e9b commit d333f67

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

Documentation/git-checkout.txt

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,8 @@ OPTIONS
118118
--quiet::
119119
Quiet, suppress feedback messages.
120120

121-
--[no-]progress::
121+
--progress::
122+
--no-progress::
122123
Progress status is reported on the standard error stream
123124
by default when it is attached to a terminal, unless `--quiet`
124125
is specified. This flag enables progress reporting even if not
@@ -262,15 +263,16 @@ edits from your current working tree. See the ``Interactive Mode''
262263
section of linkgit:git-add[1] to learn how to operate the `--patch` mode.
263264
+
264265
Note that this option uses the no overlay mode by default (see also
265-
`--[no-]overlay`), and currently doesn't support overlay mode.
266+
`--overlay`), and currently doesn't support overlay mode.
266267

267268
--ignore-other-worktrees::
268269
`git checkout` refuses when the wanted ref is already checked
269270
out by another worktree. This option makes it check the ref
270271
out anyway. In other words, the ref can be held by more than one
271272
worktree.
272273

273-
--[no-]recurse-submodules::
274+
--recurse-submodules::
275+
--no-recurse-submodules::
274276
Using --recurse-submodules will update the content of all initialized
275277
submodules according to the commit recorded in the superproject. If
276278
local modifications in a submodule would be overwritten the checkout
@@ -283,7 +285,8 @@ Note that this option uses the no overlay mode by default (see also
283285
Do not attempt to create a branch if a remote tracking branch
284286
of the same name exists.
285287

286-
--[no-]overlay::
288+
--overlay::
289+
--no-overlay::
287290
In the default overlay mode, `git checkout` never
288291
removes files from the index or the working tree. When
289292
specifying `--no-overlay`, files that appear in the index and

0 commit comments

Comments
 (0)