@@ -47,7 +47,7 @@ static int default_follow;
4747static int default_show_signature ;
4848static int decoration_style ;
4949static int decoration_given ;
50- static int use_mailmap_config = - 1 ;
50+ static int use_mailmap_config = 1 ;
5151static const char * fmt_patch_subject_prefix = "PATCH" ;
5252static const char * fmt_pretty ;
5353
@@ -156,21 +156,11 @@ static void cmd_log_init_defaults(struct rev_info *rev)
156156 parse_date_format (default_date_mode , & rev -> date_mode );
157157}
158158
159- static char warn_unspecified_mailmap_msg [] =
160- N_ ("log.mailmap is not set; its implicit value will change in an\n"
161- "upcoming release. To squelch this message and preserve current\n"
162- "behaviour, set the log.mailmap configuration value to false.\n"
163- "\n"
164- "To squelch this message and adopt the new behaviour now, set the\n"
165- "log.mailmap configuration value to true.\n"
166- "\n"
167- "See 'git help config' and search for 'log.mailmap' for further information." );
168-
169159static void cmd_log_init_finish (int argc , const char * * argv , const char * prefix ,
170160 struct rev_info * rev , struct setup_revision_opt * opt )
171161{
172162 struct userformat_want w ;
173- int quiet = 0 , source = 0 , mailmap = 0 ;
163+ int quiet = 0 , source = 0 , mailmap ;
174164 static struct line_opt_callback_data line_cb = {NULL , NULL , STRING_LIST_INIT_DUP };
175165 static struct string_list decorate_refs_exclude = STRING_LIST_INIT_NODUP ;
176166 static struct string_list decorate_refs_include = STRING_LIST_INIT_NODUP ;
@@ -214,13 +204,6 @@ static void cmd_log_init_finish(int argc, const char **argv, const char *prefix,
214204 memset (& w , 0 , sizeof (w ));
215205 userformat_find_requirements (NULL , & w );
216206
217- if (mailmap < 0 ) {
218- if (session_is_interactive () && !rev -> pretty_given )
219- warning ("%s\n" , _ (warn_unspecified_mailmap_msg ));
220-
221- mailmap = 0 ;
222- }
223-
224207 if (!rev -> show_notes_given && (!rev -> pretty_given || w .notes ))
225208 rev -> show_notes = 1 ;
226209 if (rev -> show_notes )
0 commit comments