builtin-notes: Add --message/--file aliases for -m/-F options
Signed-off-by: Johan Herland <johan@herland.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Johan Herland committed
Feb 13, 2010 at 22:28 UTC
ba20f15e0a220705695a1ee19fb28234861b890d
2 files changed
+4
-2
Documentation/git-notes.txt
+2
@@ -58,11 +58,13 @@ prune::
58
OPTIONS
59
-------
60
-m <msg>::
61
+--message=<msg>::
62
Use the given note message (instead of prompting).
63
If multiple `-m` options are given, their values
64
are concatenated as separate paragraphs.
65
66
-F <file>::
67
+--file=<file>::
68
Take the note message from the given file. Use '-' to
69
read the note message from the standard input.
70
builtin-notes.c
+2
-2
@@ -217,9 +217,9 @@ int cmd_notes(int argc, const char **argv, const char *prefix)
217
struct msg_arg msg = { 0, STRBUF_INIT };
218
struct option options[] = {
219
OPT_GROUP("Notes edit options"),
220
- OPT_CALLBACK('m', NULL, &msg, "msg",
220
+ OPT_CALLBACK('m', "message", &msg, "msg",
221
"note contents as a string", parse_msg_arg),
222
- OPT_FILENAME('F', NULL, &msgfile, "note contents in a file"),
222
+ OPT_FILENAME('F', "file", &msgfile, "note contents in a file"),
223
OPT_END()
224
};
225