Skip to content

Commit 661c3e9

Browse files
moygitster
authored andcommitted
doc: typeset HEAD and variants as literal
This is an application of the newly added CodingGuidelines to HEAD and variants like FETCH_HEAD. It was obtained with: perl -pi -e "s/'([A-Z_]*HEAD)'/\`\$1\`/g" *.txt Signed-off-by: Matthieu Moy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 57103db commit 661c3e9

File tree

11 files changed

+26
-26
lines changed

11 files changed

+26
-26
lines changed

Documentation/git-bisect.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ OPTIONS
358358
--no-checkout::
359359
+
360360
Do not checkout the new working tree at each iteration of the bisection
361-
process. Instead just update a special reference named 'BISECT_HEAD' to make
361+
process. Instead just update a special reference named `BISECT_HEAD` to make
362362
it point to the commit that should be tested.
363363
+
364364
This option may be useful when the test you would perform in each step

Documentation/git-branch.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ named commit). With `--merged`, only branches merged into the named
3939
commit (i.e. the branches whose tip commits are reachable from the named
4040
commit) will be listed. With `--no-merged` only branches not merged into
4141
the named commit will be listed. If the <commit> argument is missing it
42-
defaults to 'HEAD' (i.e. the tip of the current branch).
42+
defaults to `HEAD` (i.e. the tip of the current branch).
4343

4444
The command's second form creates a new branch head named <branchname>
45-
which points to the current 'HEAD', or <start-point> if given.
45+
which points to the current `HEAD`, or <start-point> if given.
4646

4747
Note that this will create the new branch, but it will not switch the
4848
working tree to it; use "git checkout <newbranch>" to switch to the

Documentation/git-cvsimport.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ OPTIONS
7474
akin to the way 'git clone' uses 'origin' by default.
7575

7676
-o <branch-for-HEAD>::
77-
When no remote is specified (via -r) the 'HEAD' branch
77+
When no remote is specified (via -r) the `HEAD` branch
7878
from CVS is imported to the 'origin' branch within the Git
79-
repository, as 'HEAD' already has a special meaning for Git.
80-
When a remote is specified the 'HEAD' branch is named
79+
repository, as `HEAD` already has a special meaning for Git.
80+
When a remote is specified the `HEAD` branch is named
8181
remotes/<remote>/master mirroring 'git clone' behaviour.
8282
Use this option if you want to import into a different
8383
branch.

Documentation/git-cvsserver.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ To get a checkout with the Eclipse CVS client:
332332
3. Browse the 'modules' available. It will give you a list of the heads in
333333
the repository. You will not be able to browse the tree from there. Only
334334
the heads.
335-
4. Pick 'HEAD' when it asks what branch/tag to check out. Untick the
335+
4. Pick `HEAD` when it asks what branch/tag to check out. Untick the
336336
"launch commit wizard" to avoid committing the .project file.
337337

338338
Protocol notes: If you are using anonymous access via pserver, just select that.

Documentation/git-daemon.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ they correspond to these IP addresses.
296296
selectively enable/disable services per repository::
297297
To enable 'git archive --remote' and disable 'git fetch' against
298298
a repository, have the following in the configuration file in the
299-
repository (that is the file 'config' next to 'HEAD', 'refs' and
299+
repository (that is the file 'config' next to `HEAD`, 'refs' and
300300
'objects').
301301
+
302302
----------------------------------------------------------------

Documentation/git-gui.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ blame::
3535

3636
browser::
3737
Start a tree browser showing all files in the specified
38-
commit (or 'HEAD' by default). Files selected through the
38+
commit (or `HEAD` by default). Files selected through the
3939
browser are opened in the blame viewer.
4040

4141
citool::

Documentation/git-ls-tree.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ in the current working directory. Note that:
2727
taken as relative to the current working directory. E.g. when you are
2828
in a directory 'sub' that has a directory 'dir', you can run 'git
2929
ls-tree -r HEAD dir' to list the contents of the tree (that is
30-
'sub/dir' in 'HEAD'). You don't want to give a tree that is not at the
30+
'sub/dir' in `HEAD`). You don't want to give a tree that is not at the
3131
root level (e.g. `git ls-tree -r HEAD:sub dir`) in this case, as that
32-
would result in asking for 'sub/sub/dir' in the 'HEAD' commit.
32+
would result in asking for 'sub/sub/dir' in the `HEAD` commit.
3333
However, the current working directory can be ignored by passing
3434
--full-tree option.
3535

Documentation/git-p4.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ These options can be used to modify 'git p4 submit' behavior.
275275
--origin <commit>::
276276
Upstream location from which commits are identified to submit to
277277
p4. By default, this is the most recent p4 commit reachable
278-
from 'HEAD'.
278+
from `HEAD`.
279279

280280
-M::
281281
Detect renames. See linkgit:git-diff[1]. Renames will be

Documentation/git-tag.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ This option is only applicable when listing tags without annotation lines.
167167

168168
--[no-]merged [<commit>]::
169169
Only list tags whose tips are reachable, or not reachable
170-
if `--no-merged` is used, from the specified commit ('HEAD'
170+
if `--no-merged` is used, from the specified commit (`HEAD`
171171
if not specified).
172172

173173
CONFIGURATION

Documentation/gitremote-helpers.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ Supported if the helper has the "fetch" capability.
298298
is followed by a blank line). For example, the following would
299299
be two batches of 'push', the first asking the remote-helper
300300
to push the local ref 'master' to the remote ref 'master' and
301-
the local 'HEAD' to the remote 'branch', and the second
301+
the local `HEAD` to the remote 'branch', and the second
302302
asking to push ref 'foo' to ref 'bar' (forced update requested
303303
by the '+').
304304
+

0 commit comments

Comments
 (0)