Skip to content

Commit 9a5391c

Browse files
peffgitster
authored andcommitted
Documentation: quote {non-attributes} for asciidoc
Asciidoc treats {foo} as an attribute to be substituted; if 'foo' doesn't exist as an attribute, then the entire line gets dropped. When the literal {foo} is desired, \{foo} is required. The exceptions to this rule are: - inside literal blocks - if the 'foo' contains non-alphanumeric characters (e.g., {foo|bar} is assumed not to be an attribute) Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 401de40 commit 9a5391c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/git-stash.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ list`.
2626

2727
The latest stash you created is stored in `$GIT_DIR/refs/stash`; older
2828
stashes are found in the reflog of this reference and can be named using
29-
the usual reflog syntax (e.g. `stash@{1}` is the most recently
30-
created stash, `stash@{2}` is the one before it, `stash@{2.hours.ago}`
29+
the usual reflog syntax (e.g. `stash@\{1}` is the most recently
30+
created stash, `stash@\{2}` is the one before it, `stash@\{2.hours.ago}`
3131
is also possible).
3232

3333
OPTIONS
@@ -41,7 +41,7 @@ save::
4141
list::
4242

4343
List the stashes that you currently have. Each 'stash' is listed
44-
with its name (e.g. `stash@{0}` is the latest stash, `stash@{1} is
44+
with its name (e.g. `stash@\{0}` is the latest stash, `stash@\{1} is
4545
the one before, etc.), the name of the branch that was current when the
4646
stash was made, and a short description of the commit the stash was
4747
based on.
@@ -57,7 +57,7 @@ show [<stash>]::
5757
stashed state and its original parent. When no `<stash>` is given,
5858
shows the latest one. By default, the command shows the diffstat, but
5959
it will accept any format known to `git-diff` (e.g., `git-stash show
60-
-p stash@{2}` to view the second most recent stash in patch form).
60+
-p stash@\{2}` to view the second most recent stash in patch form).
6161

6262
apply [<stash>]::
6363

0 commit comments

Comments
 (0)