Skip to content

Commit dca3d71

Browse files
committed
Merge branch 'maint'
* maint: Documentation: clarify -u<mode> option defaults
2 parents a66cee2 + 4cc6260 commit dca3d71

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

Documentation/git-commit.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -214,20 +214,20 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
214214

215215
-u[<mode>]::
216216
--untracked-files[=<mode>]::
217-
Show untracked files (Default: 'all').
217+
Show untracked files.
218218
+
219-
The mode parameter is optional, and is used to specify
220-
the handling of untracked files.
219+
The mode parameter is optional (defaults to 'all'), and is used to
220+
specify the handling of untracked files; when -u is not used, the
221+
default is 'normal', i.e. show untracked files and directories.
221222
+
222223
The possible options are:
223224
+
224225
- 'no' - Show no untracked files
225226
- 'normal' - Shows untracked files and directories
226227
- 'all' - Also shows individual files in untracked directories.
227228
+
228-
See linkgit:git-config[1] for configuration variable
229-
used to change the default for when the option is not
230-
specified.
229+
The default can be changed using the status.showUntrackedFiles
230+
configuration variable documented in linkgit:git-config[1].
231231

232232
-v::
233233
--verbose::

Documentation/git-status.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,20 @@ OPTIONS
3838

3939
-u[<mode>]::
4040
--untracked-files[=<mode>]::
41-
Show untracked files (Default: 'all').
41+
Show untracked files.
4242
+
43-
The mode parameter is optional, and is used to specify
44-
the handling of untracked files. The possible options are:
43+
The mode parameter is optional (defaults to 'all'), and is used to
44+
specify the handling of untracked files; when -u is not used, the
45+
default is 'normal', i.e. show untracked files and directories.
46+
+
47+
The possible options are:
4548
+
46-
--
4749
- 'no' - Show no untracked files
4850
- 'normal' - Shows untracked files and directories
4951
- 'all' - Also shows individual files in untracked directories.
50-
--
5152
+
52-
See linkgit:git-config[1] for configuration variable
53-
used to change the default for when the option is not
54-
specified.
53+
The default can be changed using the status.showUntrackedFiles
54+
configuration variable documented in linkgit:git-config[1].
5555

5656
--ignore-submodules[=<when>]::
5757
Ignore changes to submodules when looking for changes. <when> can be

0 commit comments

Comments
 (0)