Skip to content

Commit

Permalink
Merge branch 'maint'
Browse files Browse the repository at this point in the history
* maint:
  Documentation: clarify -u<mode> option defaults
  • Loading branch information
Junio C Hamano committed Feb 22, 2011
2 parents a66cee2 + 4cc6260 commit dca3d71
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
12 changes: 6 additions & 6 deletions Documentation/git-commit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -214,20 +214,20 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)

-u[<mode>]::
--untracked-files[=<mode>]::
Show untracked files (Default: 'all').
Show untracked files.
+
The mode parameter is optional, and is used to specify
the handling of untracked files.
The mode parameter is optional (defaults to 'all'), and is used to
specify the handling of untracked files; when -u is not used, the
default is 'normal', i.e. show untracked files and directories.
+
The possible options are:
+
- 'no' - Show no untracked files
- 'normal' - Shows untracked files and directories
- 'all' - Also shows individual files in untracked directories.
+
See linkgit:git-config[1] for configuration variable
used to change the default for when the option is not
specified.
The default can be changed using the status.showUntrackedFiles
configuration variable documented in linkgit:git-config[1].

-v::
--verbose::
Expand Down
16 changes: 8 additions & 8 deletions Documentation/git-status.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,20 +38,20 @@ OPTIONS

-u[<mode>]::
--untracked-files[=<mode>]::
Show untracked files (Default: 'all').
Show untracked files.
+
The mode parameter is optional, and is used to specify
the handling of untracked files. The possible options are:
The mode parameter is optional (defaults to 'all'), and is used to
specify the handling of untracked files; when -u is not used, the
default is 'normal', i.e. show untracked files and directories.
+
The possible options are:
+
--
- 'no' - Show no untracked files
- 'normal' - Shows untracked files and directories
- 'all' - Also shows individual files in untracked directories.
--
+
See linkgit:git-config[1] for configuration variable
used to change the default for when the option is not
specified.
The default can be changed using the status.showUntrackedFiles
configuration variable documented in linkgit:git-config[1].

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

0 comments on commit dca3d71

Please sign in to comment.