Skip to content

Commit 2017956

Browse files
Martin Ågrengitster
authored andcommitted
Documentation: wrap blocks with "--"
The documentation for each of these options contains a list. After the list, AsciiDoc interprets the continuation as a continuation of the *list*, not as a continution of the larger block. As a result, we get too much indentation. Wrap the entire blocks in "--" to fix this. With Asciidoctor, this commit is a no-op, and the two programs now render these identically. These two files share the same problem and indeed, they both document `--untracked-files` in quite similar ways. I haven't checked to what extent that is intentional or warranted, and to what extent they have simply drifted apart. I consider such an investigation and possible cleanup as out of scope for this commit and this patch series. Signed-off-by: Martin Ågren <martin.agren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 745f681 commit 2017956

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

Documentation/git-commit.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,18 +282,20 @@ FROM UPSTREAM REBASE" section in linkgit:git-rebase[1].)
282282
--untracked-files[=<mode>]::
283283
Show untracked files.
284284
+
285+
--
285286
The mode parameter is optional (defaults to 'all'), and is used to
286287
specify the handling of untracked files; when -u is not used, the
287288
default is 'normal', i.e. show untracked files and directories.
288-
+
289+
289290
The possible options are:
290-
+
291+
291292
- 'no' - Show no untracked files
292293
- 'normal' - Shows untracked files and directories
293294
- 'all' - Also shows individual files in untracked directories.
294-
+
295+
295296
The default can be changed using the status.showUntrackedFiles
296297
configuration variable documented in linkgit:git-config[1].
298+
--
297299

298300
-v::
299301
--verbose::

Documentation/git-status.txt

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,17 @@ This is optional and defaults to the original version 'v1' format.
5959
--untracked-files[=<mode>]::
6060
Show untracked files.
6161
+
62+
--
6263
The mode parameter is used to specify the handling of untracked files.
6364
It is optional: it defaults to 'all', and if specified, it must be
6465
stuck to the option (e.g. `-uno`, but not `-u no`).
65-
+
66+
6667
The possible options are:
67-
+
68+
6869
- 'no' - Show no untracked files.
6970
- 'normal' - Shows untracked files and directories.
7071
- 'all' - Also shows individual files in untracked directories.
71-
+
72+
7273
When `-u` option is not used, untracked files and directories are
7374
shown (i.e. the same as specifying `normal`), to help you avoid
7475
forgetting to add newly created files. Because it takes extra work
@@ -78,9 +79,10 @@ Consider enabling untracked cache and split index if supported (see
7879
`git update-index --untracked-cache` and `git update-index
7980
--split-index`), Otherwise you can use `no` to have `git status`
8081
return more quickly without showing untracked files.
81-
+
82+
8283
The default can be changed using the status.showUntrackedFiles
8384
configuration variable documented in linkgit:git-config[1].
85+
--
8486

8587
--ignore-submodules[=<when>]::
8688
Ignore changes to submodules when looking for changes. <when> can be
@@ -100,24 +102,26 @@ configuration variable documented in linkgit:git-config[1].
100102
--ignored[=<mode>]::
101103
Show ignored files as well.
102104
+
105+
--
103106
The mode parameter is used to specify the handling of ignored files.
104107
It is optional: it defaults to 'traditional'.
105-
+
108+
106109
The possible options are:
107-
+
110+
108111
- 'traditional' - Shows ignored files and directories, unless
109112
--untracked-files=all is specified, in which case
110113
individual files in ignored directories are
111114
displayed.
112115
- 'no' - Show no ignored files.
113116
- 'matching' - Shows ignored files and directories matching an
114117
ignore pattern.
115-
+
118+
116119
When 'matching' mode is specified, paths that explicitly match an
117120
ignored pattern are shown. If a directory matches an ignore pattern,
118121
then it is shown, but not paths contained in the ignored directory. If
119122
a directory does not match an ignore pattern, but all contents are
120123
ignored, then the directory is not shown, but all contents are shown.
124+
--
121125

122126
-z::
123127
Terminate entries with NUL, instead of LF. This implies

0 commit comments

Comments
 (0)