Skip to content

Commit 3f40617

Browse files
Michael J Grubergitster
authored andcommitted
commit,merge,tag: describe -m likewise
This also removes the superfluous "specify" and rewords the misleading "if any" which sounds as if omitting "-m" would omit the merge commit message. (It means "if a merge commit is created at all".) Signed-off-by: Michael J Gruber <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5027fa8 commit 3f40617

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

builtin/commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static struct option builtin_commit_options[] = {
121121
OPT_FILENAME('F', "file", &logfile, "read message from file"),
122122
OPT_STRING(0, "author", &force_author, "AUTHOR", "override author for commit"),
123123
OPT_STRING(0, "date", &force_date, "DATE", "override date for commit"),
124-
OPT_CALLBACK('m', "message", &message, "MESSAGE", "specify commit message", opt_parse_m),
124+
OPT_CALLBACK('m', "message", &message, "MESSAGE", "commit message", opt_parse_m),
125125
OPT_STRING('c', "reedit-message", &edit_message, "COMMIT", "reuse and edit message from specified commit"),
126126
OPT_STRING('C', "reuse-message", &use_message, "COMMIT", "reuse message from specified commit"),
127127
OPT_STRING(0, "fixup", &fixup_message, "COMMIT", "use autosquash formatted message to fixup specified commit"),

builtin/merge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,8 @@ 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",
198-
"message to be used for the merge commit (if any)",
197+
OPT_CALLBACK('m', "message", &merge_msg, "MESSAGE",
198+
"merge commit message (for a non-fast-forward merge)",
199199
option_parse_message),
200200
OPT__VERBOSITY(&verbosity),
201201
OPT_BOOLEAN(0, "abort", &abort_current_merge,

builtin/tag.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ int cmd_tag(int argc, const char **argv, const char *prefix)
376376
OPT_GROUP("Tag creation options"),
377377
OPT_BOOLEAN('a', NULL, &annotate,
378378
"annotated tag, needs a message"),
379-
OPT_CALLBACK('m', NULL, &msg, "msg",
380-
"message for the tag", parse_msg_arg),
379+
OPT_CALLBACK('m', NULL, &msg, "MESSAGE",
380+
"tag message", parse_msg_arg),
381381
OPT_FILENAME('F', NULL, &msgfile, "read message from file"),
382382
OPT_BOOLEAN('s', NULL, &sign, "annotated and GPG-signed tag"),
383383
OPT_STRING('u', NULL, &keyid, "key-id",

0 commit comments

Comments
 (0)