]> git.ipfire.org Git - thirdparty/git.git/commitdiff
log: give --[no-]use-mailmap a more sensible synonym --[no-]mailmap
authorJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2020 20:30:38 +0000 (13:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2020 21:27:07 +0000 (14:27 -0700)
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 <gitster@pobox.com>
Documentation/git-log.txt
builtin/log.c

index bed09bb09e52c6ddc0923e6173f6f5b5dceceb4a..619577f23b0460453aa55caa32cd1605610ed5f3 100644 (file)
@@ -49,6 +49,7 @@ OPTIONS
        Print out the ref name given on the command line by which each
        commit was reached.
 
+--[no-]mailmap::
 --[no-]use-mailmap::
        Use mailmap file to map author and committer names and email
        addresses to canonical real names and email addresses. See
index 83a4a6188e221caefc5028e59cb7c95c2f1d1e0c..ca1e789ba02950cb454d5ac6e6cfd1ba9c7f3dd6 100644 (file)
@@ -173,6 +173,7 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
                OPT__QUIET(&quiet, N_("suppress diff output")),
                OPT_BOOL(0, "source", &source, N_("show source")),
                OPT_BOOL(0, "use-mailmap", &mailmap, N_("Use mail map file")),
+               OPT_ALIAS(0, "mailmap", "use-mailmap"),
                OPT_STRING_LIST(0, "decorate-refs", &decorate_refs_include,
                                N_("pattern"), N_("only decorate refs that match <pattern>")),
                OPT_STRING_LIST(0, "decorate-refs-exclude", &decorate_refs_exclude,