Make <identifier> lowercase as per CodingGuidelines
*.c part for matches with '"[A-Z]+"'. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael J Gruber committed
Feb 15, 2011 at 14:09 UTC
23c6a803d3e6523ec20154e30ae8a51d2ff998ca
8 files changed
+25
-25
builtin/commit.c
+7
-7
@@ -119,13 +119,13 @@ static struct option builtin_commit_options[] = {
119
120
OPT_GROUP("Commit message options"),
121
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"),
129
OPT_BOOLEAN(0, "reset-author", &renew_authorship, "the commit is authored by me now (used with -C-c/--amend)"),
130
OPT_BOOLEAN('s', "signoff", &signoff, "add Signed-off-by:"),
131
OPT_FILENAME('t', "template", &template_file, "use specified template file"),
builtin/config.c
+1
-1
@@ -52,7 +52,7 @@ static struct option builtin_config_options[] = {
52
OPT_BOOLEAN(0, "global", &use_global_config, "use global config file"),
53
OPT_BOOLEAN(0, "system", &use_system_config, "use system config file"),
54
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"),
56
OPT_GROUP("Action"),
57
OPT_BIT(0, "get", &actions, "get value: name [value-regex]", ACTION_GET),
58
OPT_BIT(0, "get-all", &actions, "get all values: key [value-regex]", ACTION_GET_ALL),
builtin/fast-export.c
+2
-2
@@ -619,9 +619,9 @@ int cmd_fast_export(int argc, const char **argv, const char *prefix)
619
OPT_CALLBACK(0, "tag-of-filtered-object", &tag_of_filtered_mode, "mode",
620
"select handling of tags that tag filtered objects",
621
parse_opt_tag_of_filtered_mode),
622
- OPT_STRING(0, "export-marks", &export_filename, "FILE",
622
+ OPT_STRING(0, "export-marks", &export_filename, "file",
623
"Dump marks to this file"),
624
- OPT_STRING(0, "import-marks", &import_filename, "FILE",
624
+ OPT_STRING(0, "import-marks", &import_filename, "file",
625
"Import marks from this file"),
626
OPT_BOOLEAN(0, "fake-missing-tagger", &fake_missing_tagger,
627
"Fake a tagger when tags lack one"),
builtin/fetch.c
+3
-3
@@ -49,7 +49,7 @@ static struct option builtin_fetch_options[] = {
49
"fetch from all remotes"),
50
OPT_BOOLEAN('a', "append", &append,
51
"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",
53
"path to upload pack on remote end"),
54
OPT__FORCE(&force, "force overwrite of local branch"),
55
OPT_BOOLEAN('m', "multiple", &multiple,
@@ -69,9 +69,9 @@ static struct option builtin_fetch_options[] = {
69
OPT_BOOLEAN('u', "update-head-ok", &update_head_ok,
70
"allow updating of HEAD ref"),
71
OPT_BOOLEAN(0, "progress", &progress, "force progress reporting"),
72
- OPT_STRING(0, "depth", &depth, "DEPTH",
72
+ OPT_STRING(0, "depth", &depth, "depth",
73
"deepen history of shallow clone"),
74
- { OPTION_STRING, 0, "submodule-prefix", &submodule_prefix, "DIR",
74
+ { OPTION_STRING, 0, "submodule-prefix", &submodule_prefix, "dir",
75
"prepend this to submodule path output", PARSE_OPT_HIDDEN },
76
OPT_END()
77
};
builtin/merge.c
+1
-1
@@ -194,7 +194,7 @@ static struct option builtin_merge_options[] = {
194
"merge strategy to use", option_parse_strategy),
195
OPT_CALLBACK('X', "strategy-option", &xopts, "option=value",
196
"option for selected merge strategy", option_parse_x),
197
- OPT_CALLBACK('m', "message", &merge_msg, "MESSAGE",
197
+ OPT_CALLBACK('m', "message", &merge_msg, "message",
198
"merge commit message (for a non-fast-forward merge)",
199
option_parse_message),
200
OPT__VERBOSITY(&verbosity),
builtin/notes.c
+8
-8
@@ -537,16 +537,16 @@ static int add(int argc, const char **argv, const char *prefix)
537
const unsigned char *note;
538
struct msg_arg msg = { 0, 0, STRBUF_INIT };
539
struct option options[] = {
540
- { OPTION_CALLBACK, 'm', "message", &msg, "MSG",
540
+ { OPTION_CALLBACK, 'm', "message", &msg, "msg",
541
"note contents as a string", PARSE_OPT_NONEG,
542
parse_msg_arg},
543
- { OPTION_CALLBACK, 'F', "file", &msg, "FILE",
543
+ { OPTION_CALLBACK, 'F', "file", &msg, "file",
544
"note contents in a file", PARSE_OPT_NONEG,
545
parse_file_arg},
546
- { OPTION_CALLBACK, 'c', "reedit-message", &msg, "OBJECT",
546
+ { OPTION_CALLBACK, 'c', "reedit-message", &msg, "object",
547
"reuse and edit specified note object", PARSE_OPT_NONEG,
548
parse_reedit_arg},
549
- { OPTION_CALLBACK, 'C', "reuse-message", &msg, "OBJECT",
549
+ { OPTION_CALLBACK, 'C', "reuse-message", &msg, "object",
550
"reuse specified note object", PARSE_OPT_NONEG,
551
parse_reuse_arg},
552
OPT__FORCE(&force, "replace existing notes"),
@@ -682,16 +682,16 @@ static int append_edit(int argc, const char **argv, const char *prefix)
682
const char * const *usage;
683
struct msg_arg msg = { 0, 0, STRBUF_INIT };
684
struct option options[] = {
685
- { OPTION_CALLBACK, 'm', "message", &msg, "MSG",
685
+ { OPTION_CALLBACK, 'm', "message", &msg, "msg",
686
"note contents as a string", PARSE_OPT_NONEG,
687
parse_msg_arg},
688
- { OPTION_CALLBACK, 'F', "file", &msg, "FILE",
688
+ { OPTION_CALLBACK, 'F', "file", &msg, "file",
689
"note contents in a file", PARSE_OPT_NONEG,
690
parse_file_arg},
691
- { OPTION_CALLBACK, 'c', "reedit-message", &msg, "OBJECT",
691
+ { OPTION_CALLBACK, 'c', "reedit-message", &msg, "object",
692
"reuse and edit specified note object", PARSE_OPT_NONEG,
693
parse_reedit_arg},
694
- { OPTION_CALLBACK, 'C', "reuse-message", &msg, "OBJECT",
694
+ { OPTION_CALLBACK, 'C', "reuse-message", &msg, "object",
695
"reuse specified note object", PARSE_OPT_NONEG,
696
parse_reuse_arg},
697
OPT_END()
builtin/read-tree.c
+2
-2
@@ -104,8 +104,8 @@ int cmd_read_tree(int argc, const char **argv, const char *unused_prefix)
104
struct unpack_trees_options opts;
105
int prefix_set = 0;
106
const struct option read_tree_options[] = {
107
- { OPTION_CALLBACK, 0, "index-output", NULL, "FILE",
108
- "write resulting index to <FILE>",
107
+ { OPTION_CALLBACK, 0, "index-output", NULL, "file",
108
+ "write resulting index to <file>",
109
PARSE_OPT_NONEG, index_output_cb },
110
OPT_SET_INT(0, "empty", &read_empty,
111
"only empty the index", 1),
builtin/tag.c
+1
-1
@@ -376,7 +376,7 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
376
OPT_GROUP("Tag creation options"),
377
OPT_BOOLEAN('a', NULL, &annotate,
378
"annotated tag, needs a message"),
379
- OPT_CALLBACK('m', NULL, &msg, "MESSAGE",
379
+ OPT_CALLBACK('m', NULL, &msg, "message",
380
"tag message", parse_msg_arg),
381
OPT_FILENAME('F', NULL, &msgfile, "read message from file"),
382
OPT_BOOLEAN('s', NULL, &sign, "annotated and GPG-signed tag"),