Skip to content

Commit ecd75dd

Browse files
committed
Merge branch 'mg/placeholders-are-lowercase'
* mg/placeholders-are-lowercase: Make <identifier> lowercase in Documentation Make <identifier> lowercase as per CodingGuidelines Make <identifier> lowercase as per CodingGuidelines Make <identifier> lowercase as per CodingGuidelines CodingGuidelines: downcase placeholders in usage messages
2 parents c8cdbf2 + 3b0d240 commit ecd75dd

15 files changed

+42
-42
lines changed

Documentation/CodingGuidelines

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ Writing Documentation:
152152
when writing or modifying command usage strings and synopsis sections
153153
in the manual pages:
154154

155-
Placeholders are enclosed in angle brackets:
155+
Placeholders are spelled in lowercase and enclosed in angle brackets:
156156
<file>
157157
--sort=<key>
158158
--abbrev[=<n>]

Documentation/git-remote-ext.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ git-remote-ext - Bridge smart transport to external command.
77

88
SYNOPSIS
99
--------
10-
git remote add nick "ext::<command>[ <arguments>...]"
10+
git remote add <nick> "ext::<command>[ <arguments>...]"
1111

1212
DESCRIPTION
1313
-----------
14-
This remote helper uses the specified 'program' to connect
14+
This remote helper uses the specified '<command>' to connect
1515
to a remote git server.
1616

17-
Data written to stdin of this specified 'program' is assumed
17+
Data written to stdin of the specified '<command>' is assumed
1818
to be sent to a git:// server, git-upload-pack, git-receive-pack
1919
or git-upload-archive (depending on situation), and data read
20-
from stdout of this program is assumed to be received from
20+
from stdout of <command> is assumed to be received from
2121
the same service.
2222

2323
Command and arguments are separated by an unescaped space.
@@ -40,7 +40,7 @@ The following sequences have a special meaning:
4040
git wants to invoke.
4141

4242
'%G' (must be the first characters in an argument)::
43-
This argument will not be passed to 'program'. Instead, it
43+
This argument will not be passed to '<command>'. Instead, it
4444
will cause the helper to start by sending git:// service requests to
4545
the remote side with the service field set to an appropriate value and
4646
the repository field set to rest of the argument. Default is not to send
@@ -50,7 +50,7 @@ This is useful if remote side is git:// server accessed over
5050
some tunnel.
5151

5252
'%V' (must be first characters in argument)::
53-
This argument will not be passed to 'program'. Instead it sets
53+
This argument will not be passed to '<command>'. Instead it sets
5454
the vhost field in the git:// service request (to rest of the argument).
5555
Default is not to send vhost in such request (if sent).
5656

@@ -76,7 +76,7 @@ EXAMPLES:
7676
---------
7777
This remote helper is transparently used by git when
7878
you use commands such as "git fetch <URL>", "git clone <URL>",
79-
, "git push <URL>" or "git remote add nick <URL>", where <URL>
79+
, "git push <URL>" or "git remote add <nick> <URL>", where <URL>
8080
begins with `ext::`. Examples:
8181

8282
"ext::ssh -i /home/foo/.ssh/somekey user&#64;host.example %S 'foo/repo'"::

Documentation/git-remote-helpers.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,12 @@ REF LIST ATTRIBUTES
201201

202202
OPTIONS
203203
-------
204-
'option verbosity' <N>::
204+
'option verbosity' <n>::
205205
Changes the verbosity of messages displayed by the helper.
206-
A value of 0 for N means that processes operate
206+
A value of 0 for <n> means that processes operate
207207
quietly, and the helper produces only error output.
208208
1 is the default level of verbosity, and higher values
209-
of N correspond to the number of -v flags passed on the
209+
of <n> correspond to the number of -v flags passed on the
210210
command line.
211211

212212
'option progress' \{'true'|'false'\}::

Documentation/git-svn.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ COMMANDS
6666
Set the 'rewriteRoot' option in the [svn-remote] config.
6767
--rewrite-uuid=<UUID>;;
6868
Set the 'rewriteUUID' option in the [svn-remote] config.
69-
--username=<USER>;;
69+
--username=<user>;;
7070
For transports that SVN handles authentication for (http,
7171
https, and plain svn), specify the username. For other
7272
transports (eg svn+ssh://), you must include the username in
@@ -443,8 +443,8 @@ OPTIONS
443443
Only used with the 'init' command.
444444
These are passed directly to 'git init'.
445445

446-
-r <ARG>::
447-
--revision <ARG>::
446+
-r <arg>::
447+
--revision <arg>::
448448
Used with the 'fetch' command.
449449
+
450450
This allows revision ranges for partial/cauterized history

builtin/commit.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ static struct option builtin_commit_options[] = {
119119

120120
OPT_GROUP("Commit message options"),
121121
OPT_FILENAME('F', "file", &logfile, "read message from file"),
122-
OPT_STRING(0, "author", &force_author, "AUTHOR", "override author for commit"),
123-
OPT_STRING(0, "date", &force_date, "DATE", "override date for commit"),
124-
OPT_CALLBACK('m', "message", &message, "MESSAGE", "commit message", opt_parse_m),
125-
OPT_STRING('c', "reedit-message", &edit_message, "COMMIT", "reuse and edit message from specified commit"),
126-
OPT_STRING('C', "reuse-message", &use_message, "COMMIT", "reuse message from specified commit"),
127-
OPT_STRING(0, "fixup", &fixup_message, "COMMIT", "use autosquash formatted message to fixup specified commit"),
128-
OPT_STRING(0, "squash", &squash_message, "COMMIT", "use autosquash formatted message to squash specified commit"),
122+
OPT_STRING(0, "author", &force_author, "author", "override author for commit"),
123+
OPT_STRING(0, "date", &force_date, "date", "override date for commit"),
124+
OPT_CALLBACK('m', "message", &message, "message", "commit message", opt_parse_m),
125+
OPT_STRING('c', "reedit-message", &edit_message, "commit", "reuse and edit message from specified commit"),
126+
OPT_STRING('C', "reuse-message", &use_message, "commit", "reuse message from specified commit"),
127+
OPT_STRING(0, "fixup", &fixup_message, "commit", "use autosquash formatted message to fixup specified commit"),
128+
OPT_STRING(0, "squash", &squash_message, "commit", "use autosquash formatted message to squash specified commit"),
129129
OPT_BOOLEAN(0, "reset-author", &renew_authorship, "the commit is authored by me now (used with -C-c/--amend)"),
130130
OPT_BOOLEAN('s', "signoff", &signoff, "add Signed-off-by:"),
131131
OPT_FILENAME('t', "template", &template_file, "use specified template file"),

builtin/config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static struct option builtin_config_options[] = {
5252
OPT_BOOLEAN(0, "global", &use_global_config, "use global config file"),
5353
OPT_BOOLEAN(0, "system", &use_system_config, "use system config file"),
5454
OPT_BOOLEAN(0, "local", &use_local_config, "use repository config file"),
55-
OPT_STRING('f', "file", &given_config_file, "FILE", "use given config file"),
55+
OPT_STRING('f', "file", &given_config_file, "file", "use given config file"),
5656
OPT_GROUP("Action"),
5757
OPT_BIT(0, "get", &actions, "get value: name [value-regex]", ACTION_GET),
5858
OPT_BIT(0, "get-all", &actions, "get all values: key [value-regex]", ACTION_GET_ALL),

builtin/fast-export.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,9 +619,9 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
619619
OPT_CALLBACK(0, "tag-of-filtered-object", &tag_of_filtered_mode, "mode",
620620
"select handling of tags that tag filtered objects",
621621
parse_opt_tag_of_filtered_mode),
622-
OPT_STRING(0, "export-marks", &export_filename, "FILE",
622+
OPT_STRING(0, "export-marks", &export_filename, "file",
623623
"Dump marks to this file"),
624-
OPT_STRING(0, "import-marks", &import_filename, "FILE",
624+
OPT_STRING(0, "import-marks", &import_filename, "file",
625625
"Import marks from this file"),
626626
OPT_BOOLEAN(0, "fake-missing-tagger", &fake_missing_tagger,
627627
"Fake a tagger when tags lack one"),

builtin/fetch.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static struct option builtin_fetch_options[] = {
4949
"fetch from all remotes"),
5050
OPT_BOOLEAN('a', "append", &append,
5151
"append to .git/FETCH_HEAD instead of overwriting"),
52-
OPT_STRING(0, "upload-pack", &upload_pack, "PATH",
52+
OPT_STRING(0, "upload-pack", &upload_pack, "path",
5353
"path to upload pack on remote end"),
5454
OPT__FORCE(&force, "force overwrite of local branch"),
5555
OPT_BOOLEAN('m', "multiple", &multiple,
@@ -69,9 +69,9 @@ static struct option builtin_fetch_options[] = {
6969
OPT_BOOLEAN('u', "update-head-ok", &update_head_ok,
7070
"allow updating of HEAD ref"),
7171
OPT_BOOLEAN(0, "progress", &progress, "force progress reporting"),
72-
OPT_STRING(0, "depth", &depth, "DEPTH",
72+
OPT_STRING(0, "depth", &depth, "depth",
7373
"deepen history of shallow clone"),
74-
{ OPTION_STRING, 0, "submodule-prefix", &submodule_prefix, "DIR",
74+
{ OPTION_STRING, 0, "submodule-prefix", &submodule_prefix, "dir",
7575
"prepend this to submodule path output", PARSE_OPT_HIDDEN },
7676
OPT_END()
7777
};

builtin/merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ static struct option builtin_merge_options[] = {
194194
"merge strategy to use", option_parse_strategy),
195195
OPT_CALLBACK('X', "strategy-option", &xopts, "option=value",
196196
"option for selected merge strategy", option_parse_x),
197-
OPT_CALLBACK('m', "message", &merge_msg, "MESSAGE",
197+
OPT_CALLBACK('m', "message", &merge_msg, "message",
198198
"merge commit message (for a non-fast-forward merge)",
199199
option_parse_message),
200200
OPT__VERBOSITY(&verbosity),

builtin/notes.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -537,16 +537,16 @@ static int add(int argc, const char **argv, const char *prefix)
537537
const unsigned char *note;
538538
struct msg_arg msg = { 0, 0, STRBUF_INIT };
539539
struct option options[] = {
540-
{ OPTION_CALLBACK, 'm', "message", &msg, "MSG",
540+
{ OPTION_CALLBACK, 'm', "message", &msg, "msg",
541541
"note contents as a string", PARSE_OPT_NONEG,
542542
parse_msg_arg},
543-
{ OPTION_CALLBACK, 'F', "file", &msg, "FILE",
543+
{ OPTION_CALLBACK, 'F', "file", &msg, "file",
544544
"note contents in a file", PARSE_OPT_NONEG,
545545
parse_file_arg},
546-
{ OPTION_CALLBACK, 'c', "reedit-message", &msg, "OBJECT",
546+
{ OPTION_CALLBACK, 'c', "reedit-message", &msg, "object",
547547
"reuse and edit specified note object", PARSE_OPT_NONEG,
548548
parse_reedit_arg},
549-
{ OPTION_CALLBACK, 'C', "reuse-message", &msg, "OBJECT",
549+
{ OPTION_CALLBACK, 'C', "reuse-message", &msg, "object",
550550
"reuse specified note object", PARSE_OPT_NONEG,
551551
parse_reuse_arg},
552552
OPT__FORCE(&force, "replace existing notes"),
@@ -682,16 +682,16 @@ static int append_edit(int argc, const char **argv, const char *prefix)
682682
const char * const *usage;
683683
struct msg_arg msg = { 0, 0, STRBUF_INIT };
684684
struct option options[] = {
685-
{ OPTION_CALLBACK, 'm', "message", &msg, "MSG",
685+
{ OPTION_CALLBACK, 'm', "message", &msg, "msg",
686686
"note contents as a string", PARSE_OPT_NONEG,
687687
parse_msg_arg},
688-
{ OPTION_CALLBACK, 'F', "file", &msg, "FILE",
688+
{ OPTION_CALLBACK, 'F', "file", &msg, "file",
689689
"note contents in a file", PARSE_OPT_NONEG,
690690
parse_file_arg},
691-
{ OPTION_CALLBACK, 'c', "reedit-message", &msg, "OBJECT",
691+
{ OPTION_CALLBACK, 'c', "reedit-message", &msg, "object",
692692
"reuse and edit specified note object", PARSE_OPT_NONEG,
693693
parse_reedit_arg},
694-
{ OPTION_CALLBACK, 'C', "reuse-message", &msg, "OBJECT",
694+
{ OPTION_CALLBACK, 'C', "reuse-message", &msg, "object",
695695
"reuse specified note object", PARSE_OPT_NONEG,
696696
parse_reuse_arg},
697697
OPT_END()

0 commit comments

Comments
 (0)