Skip to content

Commit 88acccd

Browse files
committed
log: give --[no-]use-mailmap a more sensible synonym --[no-]mailmap
The option name "--use-mailmap" looks OK, but it becomes awkward when you have to negate it, i.e. "--no-use-mailmap". I, perhaps with many other users, always try "--no-mailmap" and become unhappy to see it fail. Add an alias "--[no-]mailmap" to remedy this. Signed-off-by: Junio C Hamano <[email protected]>
1 parent c28b036 commit 88acccd

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Documentation/git-log.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ OPTIONS
4949
Print out the ref name given on the command line by which each
5050
commit was reached.
5151

52+
--[no-]mailmap::
5253
--[no-]use-mailmap::
5354
Use mailmap file to map author and committer names and email
5455
addresses to canonical real names and email addresses. See

builtin/log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
173173
OPT__QUIET(&quiet, N_("suppress diff output")),
174174
OPT_BOOL(0, "source", &source, N_("show source")),
175175
OPT_BOOL(0, "use-mailmap", &mailmap, N_("Use mail map file")),
176+
OPT_ALIAS(0, "mailmap", "use-mailmap"),
176177
OPT_STRING_LIST(0, "decorate-refs", &decorate_refs_include,
177178
N_("pattern"), N_("only decorate refs that match <pattern>")),
178179
OPT_STRING_LIST(0, "decorate-refs-exclude", &decorate_refs_exclude,

0 commit comments

Comments
 (0)