Skip to content

Commit 5d6b3a9

Browse files
szederspearce
authored andcommitted
Documentation: remove '\' in front of short options
... because they show up in the man and html outputs. This escaping is only needed for double dashes to be compatible with older asciidoc versions; see commit e1ccf53 ([PATCH] Escape asciidoc's built-in em-dash replacement, 2005-09-12). Signed-off-by: SZEDER Gábor <[email protected]> Signed-off-by: Shawn O. Pearce <[email protected]>
1 parent 0a1a1c8 commit 5d6b3a9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Documentation/git-rev-list.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ SYNOPSIS
3232
[ \--cherry-pick ]
3333
[ \--encoding[=<encoding>] ]
3434
[ \--(author|committer|grep)=<pattern> ]
35-
[ \--regexp-ignore-case | \-i ]
36-
[ \--extended-regexp | \-E ]
37-
[ \--fixed-strings | \-F ]
35+
[ \--regexp-ignore-case | -i ]
36+
[ \--extended-regexp | -E ]
37+
[ \--fixed-strings | -F ]
3838
[ \--date={local|relative|default|iso|rfc|short} ]
3939
[ [\--objects | \--objects-edge] [ \--unpacked ] ]
4040
[ \--pretty | \--header ]

Documentation/githooks.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,12 @@ default log message, and before the editor is started.
8787

8888
It takes one to three parameters. The first is the name of the file
8989
that the commit log message. The second is the source of the commit
90-
message, and can be: `message` (if a `\-m` or `\-F` option was
91-
given); `template` (if a `\-t` option was given or the
90+
message, and can be: `message` (if a `-m` or `-F` option was
91+
given); `template` (if a `-t` option was given or the
9292
configuration option `commit.template` is set); `merge` (if the
9393
commit is a merge or a `.git/MERGE_MSG` file exists); `squash`
9494
(if a `.git/SQUASH_MSG` file exists); or `commit`, followed by
95-
a commit SHA1 (if a `\-c`, `\-C` or `\--amend` option was given).
95+
a commit SHA1 (if a `-c`, `-C` or `\--amend` option was given).
9696

9797
If the exit status is non-zero, 'git-commit' will abort.
9898

0 commit comments

Comments
 (0)