summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e397421)
raw | patch | inline | side by side (parent: e397421)
author | Johan Herland <johan@herland.net> | |
Sat, 13 Feb 2010 21:28:31 +0000 (22:28 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 14 Feb 2010 03:36:15 +0000 (19:36 -0800) |
Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-notes.txt | patch | blob | history | |
builtin-notes.c | patch | blob | history |
index 4d29d5fb9489e1700fb7e877f0afdc123fccae4b..8969f6f8fa652e2f6e9428f56190b8f2a2507c4c 100644 (file)
OPTIONS
-------
-m <msg>::
+--message=<msg>::
Use the given note message (instead of prompting).
If multiple `-m` options are given, their values
are concatenated as separate paragraphs.
-F <file>::
+--file=<file>::
Take the note message from the given file. Use '-' to
read the note message from the standard input.
diff --git a/builtin-notes.c b/builtin-notes.c
index b808534129c07ddae6981aa02aafcbd27a235dc2..ec959bcb31766a2ca383f55d63bfa1902e6772d4 100644 (file)
--- a/builtin-notes.c
+++ b/builtin-notes.c
struct msg_arg msg = { 0, STRBUF_INIT };
struct option options[] = {
OPT_GROUP("Notes edit options"),
- OPT_CALLBACK('m', NULL, &msg, "msg",
+ OPT_CALLBACK('m', "message", &msg, "msg",
"note contents as a string", parse_msg_arg),
- OPT_FILENAME('F', NULL, &msgfile, "note contents in a file"),
+ OPT_FILENAME('F', "file", &msgfile, "note contents in a file"),
OPT_END()
};