Skip to content

Commit 133db54

Browse files
jnavilagitster
authored andcommitted
doc: use only hyphens as word separators in placeholders
According to CodingGuidelines, multi-word placeholders should use hyphens as word separators. Signed-off-by: Jean-Noël Avila <[email protected]> Signed-off-by: Junio C Hamano <[email protected]> Reviewed-by: Eli Schwartz <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 49cbad0 commit 133db54

14 files changed

+76
-76
lines changed

Documentation/date-formats.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ The `GIT_AUTHOR_DATE` and `GIT_COMMITTER_DATE` environment variables
55
support the following date formats:
66

77
Git internal format::
8-
It is `<unix timestamp> <time zone offset>`, where `<unix
9-
timestamp>` is the number of seconds since the UNIX epoch.
10-
`<time zone offset>` is a positive or negative offset from UTC.
8+
It is `<unix-timestamp> <time-zone-offset>`, where
9+
`<unix-timestamp>` is the number of seconds since the UNIX epoch.
10+
`<time-zone-offset>` is a positive or negative offset from UTC.
1111
For example CET (which is 1 hour ahead of UTC) is `+0100`.
1212

1313
RFC 2822::

Documentation/git-checkout.txt

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SYNOPSIS
1111
'git checkout' [-q] [-f] [-m] [<branch>]
1212
'git checkout' [-q] [-f] [-m] --detach [<branch>]
1313
'git checkout' [-q] [-f] [-m] [--detach] <commit>
14-
'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] <new_branch>] [<start_point>]
14+
'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] <new-branch>] [<start-point>]
1515
'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <pathspec>...
1616
'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] --pathspec-from-file=<file> [--pathspec-file-nul]
1717
'git checkout' (-p|--patch) [<tree-ish>] [--] [<pathspec>...]
@@ -43,7 +43,7 @@ You could omit `<branch>`, in which case the command degenerates to
4343
rather expensive side-effects to show only the tracking information,
4444
if exists, for the current branch.
4545

46-
'git checkout' -b|-B <new_branch> [<start point>]::
46+
'git checkout' -b|-B <new-branch> [<start-point>]::
4747

4848
Specifying `-b` causes a new branch to be created as if
4949
linkgit:git-branch[1] were called and then checked out. In
@@ -52,11 +52,11 @@ if exists, for the current branch.
5252
`--track` without `-b` implies branch creation; see the
5353
description of `--track` below.
5454
+
55-
If `-B` is given, `<new_branch>` is created if it doesn't exist; otherwise, it
55+
If `-B` is given, `<new-branch>` is created if it doesn't exist; otherwise, it
5656
is reset. This is the transactional equivalent of
5757
+
5858
------------
59-
$ git branch -f <branch> [<start point>]
59+
$ git branch -f <branch> [<start-point>]
6060
$ git checkout <branch>
6161
------------
6262
+
@@ -144,13 +144,13 @@ as `ours` (i.e. "our shared canonical history"), while what you did
144144
on your side branch as `theirs` (i.e. "one contributor's work on top
145145
of it").
146146

147-
-b <new_branch>::
148-
Create a new branch named `<new_branch>` and start it at
149-
`<start_point>`; see linkgit:git-branch[1] for details.
147+
-b <new-branch>::
148+
Create a new branch named `<new-branch>` and start it at
149+
`<start-point>`; see linkgit:git-branch[1] for details.
150150

151-
-B <new_branch>::
152-
Creates the branch `<new_branch>` and start it at `<start_point>`;
153-
if it already exists, then reset it to `<start_point>`. This is
151+
-B <new-branch>::
152+
Creates the branch `<new-branch>` and start it at `<start-point>`;
153+
if it already exists, then reset it to `<start-point>`. This is
154154
equivalent to running "git branch" with "-f"; see
155155
linkgit:git-branch[1] for details.
156156

@@ -209,16 +209,16 @@ variable.
209209
`<commit>` is not a branch name. See the "DETACHED HEAD" section
210210
below for details.
211211

212-
--orphan <new_branch>::
213-
Create a new 'orphan' branch, named `<new_branch>`, started from
214-
`<start_point>` and switch to it. The first commit made on this
212+
--orphan <new-branch>::
213+
Create a new 'orphan' branch, named `<new-branch>`, started from
214+
`<start-point>` and switch to it. The first commit made on this
215215
new branch will have no parents and it will be the root of a new
216216
history totally disconnected from all the other branches and
217217
commits.
218218
+
219219
The index and the working tree are adjusted as if you had previously run
220-
`git checkout <start_point>`. This allows you to start a new history
221-
that records a set of paths similar to `<start_point>` by easily running
220+
`git checkout <start-point>`. This allows you to start a new history
221+
that records a set of paths similar to `<start-point>` by easily running
222222
`git commit -a` to make the root commit.
223223
+
224224
This can be useful when you want to publish the tree from a commit
@@ -228,7 +228,7 @@ whose full history contains proprietary or otherwise encumbered bits of
228228
code.
229229
+
230230
If you want to start a disconnected history that records a set of paths
231-
that is totally different from the one of `<start_point>`, then you should
231+
that is totally different from the one of `<start-point>`, then you should
232232
clear the index and the working tree right after creating the orphan
233233
branch by running `git rm -rf .` from the top level of the working tree.
234234
Afterwards you will be ready to prepare your new files, repopulating the
@@ -340,10 +340,10 @@ As a special case, you may use `A...B` as a shortcut for the
340340
merge base of `A` and `B` if there is exactly one merge base. You can
341341
leave out at most one of `A` and `B`, in which case it defaults to `HEAD`.
342342

343-
<new_branch>::
343+
<new-branch>::
344344
Name for the new branch.
345345

346-
<start_point>::
346+
<start-point>::
347347
The name of a commit at which to start the new branch; see
348348
linkgit:git-branch[1] for details. Defaults to `HEAD`.
349349
+

Documentation/git-clone.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ git-clone - Clone a repository into a new directory
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git clone' [--template=<template_directory>]
12+
'git clone' [--template=<template-directory>]
1313
[-l] [-s] [--no-hardlinks] [-q] [-n] [--bare] [--mirror]
1414
[-o <name>] [-b <name>] [-u <upload-pack>] [--reference <repository>]
15-
[--dissociate] [--separate-git-dir <git dir>]
15+
[--dissociate] [--separate-git-dir <git-dir>]
1616
[--depth <depth>] [--[no-]single-branch] [--no-tags]
1717
[--recurse-submodules[=<pathspec>]] [--[no-]shallow-submodules]
1818
[--[no-]remote-submodules] [--jobs <n>] [--sparse] [--[no-]reject-shallow]
@@ -211,7 +211,7 @@ objects from the source repository into a pack in the cloned repository.
211211
via ssh, this specifies a non-default path for the command
212212
run on the other end.
213213

214-
--template=<template_directory>::
214+
--template=<template-directory>::
215215
Specify the directory from which templates will be used;
216216
(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
217217

@@ -294,7 +294,7 @@ or `--mirror` is given)
294294
superproject's recorded SHA-1. Equivalent to passing `--remote` to
295295
`git submodule update`.
296296

297-
--separate-git-dir=<git dir>::
297+
--separate-git-dir=<git-dir>::
298298
Instead of placing the cloned repository where it is supposed
299299
to be, place the cloned repository at the specified directory,
300300
then make a filesystem-agnostic Git symbolic link to there.

Documentation/git-cvsimport.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ SYNOPSIS
1111
[verse]
1212
'git cvsimport' [-o <branch-for-HEAD>] [-h] [-v] [-d <CVSROOT>]
1313
[-A <author-conv-file>] [-p <options-for-cvsps>] [-P <file>]
14-
[-C <git_repository>] [-z <fuzz>] [-i] [-k] [-u] [-s <subst>]
15-
[-a] [-m] [-M <regex>] [-S <regex>] [-L <commitlimit>]
16-
[-r <remote>] [-R] [<CVS_module>]
14+
[-C <git-repository>] [-z <fuzz>] [-i] [-k] [-u] [-s <subst>]
15+
[-a] [-m] [-M <regex>] [-S <regex>] [-L <commit-limit>]
16+
[-r <remote>] [-R] [<CVS-module>]
1717

1818

1919
DESCRIPTION
@@ -59,7 +59,7 @@ OPTIONS
5959
from `CVS/Root`. If no such file exists, it checks for the
6060
`CVSROOT` environment variable.
6161

62-
<CVS_module>::
62+
<CVS-module>::
6363
The CVS module you want to import. Relative to <CVSROOT>.
6464
If not given, 'git cvsimport' tries to read it from
6565
`CVS/Repository`.

Documentation/git-diff-files.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-diff-files - Compares files in the working tree and the index
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<common diff options>] [<path>...]
12+
'git diff-files' [-q] [-0|-1|-2|-3|-c|--cc] [<common-diff-options>] [<path>...]
1313

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

Documentation/git-diff-index.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-diff-index - Compare a tree to the working tree or index
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git diff-index' [-m] [--cached] [--merge-base] [<common diff options>] <tree-ish> [<path>...]
12+
'git diff-index' [-m] [--cached] [--merge-base] [<common-diff-options>] <tree-ish> [<path>...]
1313

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

Documentation/git-diff-tree.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ SYNOPSIS
1111
[verse]
1212
'git diff-tree' [--stdin] [-m] [-s] [-v] [--no-commit-id] [--pretty]
1313
[-t] [-r] [-c | --cc] [--combined-all-paths] [--root] [--merge-base]
14-
[<common diff options>] <tree-ish> [<tree-ish>] [<path>...]
14+
[<common-diff-options>] <tree-ish> [<tree-ish>] [<path>...]
1515

1616
DESCRIPTION
1717
-----------

Documentation/git-init-db.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-init-db - Creates an empty Git repository
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git init-db' [-q | --quiet] [--bare] [--template=<template_directory>] [--separate-git-dir <git dir>] [--shared[=<permissions>]]
12+
'git init-db' [-q | --quiet] [--bare] [--template=<template-directory>] [--separate-git-dir <git-dir>] [--shared[=<permissions>]]
1313

1414

1515
DESCRIPTION

Documentation/git-init.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ git-init - Create an empty Git repository or reinitialize an existing one
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git init' [-q | --quiet] [--bare] [--template=<template_directory>]
13-
[--separate-git-dir <git dir>] [--object-format=<format>]
12+
'git init' [-q | --quiet] [--bare] [--template=<template-directory>]
13+
[--separate-git-dir <git-dir>] [--object-format=<format>]
1414
[-b <branch-name> | --initial-branch=<branch-name>]
1515
[--shared[=<permissions>]] [<directory>]
1616

@@ -57,12 +57,12 @@ values are 'sha1' and (if enabled) 'sha256'. 'sha1' is the default.
5757
+
5858
include::object-format-disclaimer.txt[]
5959

60-
--template=<template_directory>::
60+
--template=<template-directory>::
6161

6262
Specify the directory from which templates will be used. (See the "TEMPLATE
6363
DIRECTORY" section below.)
6464

65-
--separate-git-dir=<git dir>::
65+
--separate-git-dir=<git-dir>::
6666

6767
Instead of initializing the repository as a directory to either `$GIT_DIR` or
6868
`./.git/`, create a text file there containing the path to the actual

Documentation/git-log.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-log - Show commit logs
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git log' [<options>] [<revision range>] [[--] <path>...]
12+
'git log' [<options>] [<revision-range>] [[--] <path>...]
1313

1414
DESCRIPTION
1515
-----------
@@ -81,13 +81,13 @@ produced by `--stat`, etc.
8181

8282
include::line-range-options.txt[]
8383

84-
<revision range>::
84+
<revision-range>::
8585
Show only commits in the specified revision range. When no
86-
<revision range> is specified, it defaults to `HEAD` (i.e. the
86+
<revision-range> is specified, it defaults to `HEAD` (i.e. the
8787
whole history leading to the current commit). `origin..HEAD`
8888
specifies all the commits reachable from the current commit
8989
(i.e. `HEAD`), but not from `origin`. For a complete list of
90-
ways to spell <revision range>, see the 'Specifying Ranges'
90+
ways to spell <revision-range>, see the 'Specifying Ranges'
9191
section of linkgit:gitrevisions[7].
9292

9393
[--] <path>...::

0 commit comments

Comments
 (0)