Skip to content

Commit c0808fe

Browse files
committed
Merge branch 'jn/doc-backslash'
* jn/doc-backslash: Documentation: remove stray backslash in show-branch discussion Documentation: remove stray backslashes from "Fighting regressions" article Documentation: do not convert ... operator to ellipses Documentation: avoid stray backslash in user manual Documentation: avoid stray backslashes in core tutorial Documentation: remove stray backslashes in rev-parse manual Documentation: remove backslash before ~ in fast-import manual Documentation: remove stray backslash from "git bundle" manual Documentation/technical: avoid stray backslash in parse-options API docs Documentation: remove backslashes in manpage synopses Documentation: clarify quoting in gitignore docs Documentation: clarify quoting in "git rm" example Documentation: add missing quotes to "git grep" examples Documentation: clarify quoting in "git add" example Documentation: unbreak regex in show-ref manual Documentation: quoting trouble in "git rm" discussion Documentation: tweak description of log.date
2 parents 2b916ff + a521845 commit c0808fe

26 files changed

+64
-59
lines changed

Documentation/asciidoc.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ plus=+
1616
caret=^
1717
startsb=[
1818
endsb=]
19+
backslash=\
1920
tilde=~
21+
apostrophe='
2022
backtick=`
2123

2224
ifdef::backend-docbook[]

Documentation/config.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1305,10 +1305,11 @@ interactive.singlekey::
13051305
ignored if portable keystroke input is not available.
13061306

13071307
log.date::
1308-
Set default date-time mode for the log command. Setting log.date
1309-
value is similar to using 'git log'\'s --date option. The value is one of the
1310-
following alternatives: {relative,local,default,iso,rfc,short}.
1311-
See linkgit:git-log[1].
1308+
Set the default date-time mode for the 'log' command.
1309+
Setting a value for log.date is similar to using 'git log''s
1310+
`\--date` option. Possible values are `relative`, `local`,
1311+
`default`, `iso`, `rfc`, and `short`; see linkgit:git-log[1]
1312+
for details.
13121313

13131314
log.decorate::
13141315
Print out the ref names of any commits that are shown by the log

Documentation/git-add.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,14 +157,14 @@ those in info/exclude. See linkgit:gitrepository-layout[5].
157157
EXAMPLES
158158
--------
159159

160-
* Adds content from all `\*.txt` files under `Documentation` directory
160+
* Adds content from all `*.txt` files under `Documentation` directory
161161
and its subdirectories:
162162
+
163163
------------
164164
$ git add Documentation/\*.txt
165165
------------
166166
+
167-
Note that the asterisk `\*` is quoted from the shell in this
167+
Note that the asterisk `*` is quoted from the shell in this
168168
example; this lets the command include the files from
169169
subdirectories of `Documentation/` directory.
170170

Documentation/git-bisect-lk2009.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ c * N * T + b * M * log2(M) tests
873873
where c is the number of rounds of test (so a small constant) and b is
874874
the ratio of bug per commit (hopefully a small constant too).
875875

876-
So of course it's much better as it's O(N \* T) vs O(N \* T \* M) if
876+
So of course it's much better as it's O(N * T) vs O(N * T * M) if
877877
you would test everything after each commit.
878878

879879
This means that test suites are good to prevent some bugs from being

Documentation/git-bundle.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ unbundle <file>::
6060
[git-rev-list-args...]::
6161
A list of arguments, acceptable to 'git rev-parse' and
6262
'git rev-list', that specifies the specific objects and references
63-
to transport. For example, `master\~10..master` causes the
63+
to transport. For example, `master~10..master` causes the
6464
current master reference to be packaged along with all objects
6565
added since its 10th ancestor commit. There is no explicit
6666
limit to the number of references and objects that may be
@@ -79,12 +79,12 @@ SPECIFYING REFERENCES
7979

8080
'git bundle' will only package references that are shown by
8181
'git show-ref': this includes heads, tags, and remote heads. References
82-
such as `master\~1` cannot be packaged, but are perfectly suitable for
82+
such as `master{tilde}1` cannot be packaged, but are perfectly suitable for
8383
defining the basis. More than one reference may be packaged, and more
8484
than one basis can be specified. The objects packaged are those not
8585
contained in the union of the given bases. Each basis can be
86-
specified explicitly (e.g. `^master\~10`), or implicitly (e.g.
87-
`master\~10..master`, `--since=10.days.ago master`).
86+
specified explicitly (e.g. `^master{tilde}10`), or implicitly (e.g.
87+
`master{tilde}10..master`, `--since=10.days.ago master`).
8888

8989
It is very important that the basis used be held by the destination.
9090
It is okay to err on the side of caution, causing the bundle file

Documentation/git-checkout-index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ SYNOPSIS
1313
[--stage=<number>|all]
1414
[--temp]
1515
[-z] [--stdin]
16-
[--] [<file>]\*
16+
[--] [<file>]*
1717

1818
DESCRIPTION
1919
-----------

Documentation/git-checkout.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ As a special case, the `"@\{-N\}"` syntax for the N-th last branch
187187
checks out the branch (instead of detaching). You may also specify
188188
`-` which is synonymous with `"@\{-1\}"`.
189189
+
190-
As a further special case, you may use `"A...B"` as a shortcut for the
190+
As a further special case, you may use `"A\...B"` as a shortcut for the
191191
merge base of `A` and `B` if there is exactly one merge base. You can
192192
leave out at most one of `A` and `B`, in which case it defaults to `HEAD`.
193193

Documentation/git-commit-tree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-commit-tree - Create a new commit object
88

99
SYNOPSIS
1010
--------
11-
'git commit-tree' <tree> [-p <parent commit>]\* < changelog
11+
'git commit-tree' <tree> [-p <parent commit>]* < changelog
1212

1313
DESCRIPTION
1414
-----------

Documentation/git-fast-export.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ marks the same across runs.
9999
[git-rev-list-args...]::
100100
A list of arguments, acceptable to 'git rev-parse' and
101101
'git rev-list', that specifies the specific objects and references
102-
to export. For example, `master\~10..master` causes the
102+
to export. For example, `master{tilde}10..master` causes the
103103
current master reference to be exported along with all objects
104104
added since its 10th ancestor commit.
105105

Documentation/git-for-each-ref.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ SYNOPSIS
99
--------
1010
[verse]
1111
'git for-each-ref' [--count=<count>] [--shell|--perl|--python|--tcl]
12-
[--sort=<key>]\* [--format=<format>] [<pattern>...]
12+
[--sort=<key>]* [--format=<format>] [<pattern>...]
1313

1414
DESCRIPTION
1515
-----------

0 commit comments

Comments
 (0)