config: write to $XDG_CONFIG_HOME/git/config file when appropriate
[gitweb.git] / builtin / log.c
index d86bca34dd79cc00ac7e0e34929b2a00878626f8..4f1b42a685ff76a64e7c8386007ca450c5032cb1 100644 (file)
@@ -21,6 +21,7 @@
 #include "parse-options.h"
 #include "branch.h"
 #include "streaming.h"
+#include "version.h"
 
 /* Set a default date-time format for git log ("log.date" config variable) */
 static const char *default_date_mode = NULL;
@@ -741,7 +742,7 @@ static void gen_message_id(struct rev_info *info, char *base)
        struct strbuf buf = STRBUF_INIT;
        strbuf_addf(&buf, "%s.%lu.git.%s", base,
                    (unsigned long) time(NULL),
-                   git_committer_info(IDENT_NO_NAME|IDENT_NO_DATE));
+                   git_committer_info(IDENT_NO_NAME|IDENT_NO_DATE|IDENT_STRICT));
        info->message_id = strbuf_detach(&buf, NULL);
 }