|
32 | 32 | static const char *separator = "\n"; |
33 | 33 | static const char * const git_notes_usage[] = { |
34 | 34 | N_("git notes [--ref <notes-ref>] [list [<object>]]"), |
35 | | - N_("git notes [--ref <notes-ref>] add [-f] [--allow-empty] [--[no-]separator|--separator=<paragraph-break>] [--[no-]stripspace] [-m <msg> | -F <file> | (-c | -C) <object>] [<object>]"), |
| 35 | + N_("git notes [--ref <notes-ref>] add [-f] [--allow-empty] [--[no-]separator|--separator=<paragraph-break>] [--[no-]stripspace] [-m <msg> | -F <file> | (-c | -C) <object>] [<object>] [-e]"), |
36 | 36 | N_("git notes [--ref <notes-ref>] copy [-f] <from-object> <to-object>"), |
37 | | - N_("git notes [--ref <notes-ref>] append [--allow-empty] [--[no-]separator|--separator=<paragraph-break>] [--[no-]stripspace] [-m <msg> | -F <file> | (-c | -C) <object>] [<object>]"), |
| 37 | + N_("git notes [--ref <notes-ref>] append [--allow-empty] [--[no-]separator|--separator=<paragraph-break>] [--[no-]stripspace] [-m <msg> | -F <file> | (-c | -C) <object>] [<object>] [-e]"), |
38 | 38 | N_("git notes [--ref <notes-ref>] edit [--allow-empty] [<object>]"), |
39 | 39 | N_("git notes [--ref <notes-ref>] show [<object>]"), |
40 | 40 | N_("git notes [--ref <notes-ref>] merge [-v | -q] [-s <strategy>] <notes-ref>"), |
@@ -489,6 +489,8 @@ static int add(int argc, const char **argv, const char *prefix) |
489 | 489 | OPT_CALLBACK_F('c', "reedit-message", &d, N_("object"), |
490 | 490 | N_("reuse and edit specified note object"), PARSE_OPT_NONEG, |
491 | 491 | parse_reedit_arg), |
| 492 | + OPT_BOOL('e', "edit", &d.use_editor, |
| 493 | + N_("edit note message in editor")), |
492 | 494 | OPT_CALLBACK_F('C', "reuse-message", &d, N_("object"), |
493 | 495 | N_("reuse specified note object"), PARSE_OPT_NONEG, |
494 | 496 | parse_reuse_arg), |
@@ -667,6 +669,8 @@ static int append_edit(int argc, const char **argv, const char *prefix) |
667 | 669 | OPT_CALLBACK_F('C', "reuse-message", &d, N_("object"), |
668 | 670 | N_("reuse specified note object"), PARSE_OPT_NONEG, |
669 | 671 | parse_reuse_arg), |
| 672 | + OPT_BOOL('e', "edit", &d.use_editor, |
| 673 | + N_("edit note message in editor")), |
670 | 674 | OPT_BOOL(0, "allow-empty", &allow_empty, |
671 | 675 | N_("allow storing empty note")), |
672 | 676 | OPT_CALLBACK_F(0, "separator", &separator, |
|
0 commit comments