Don't use "<unknown>" for placeholders and suppress printing of empty user formats.
[gitweb.git] / commit.c
index 99f65cee0e7e30e833f850b5993aa8a5797ba889..c9a18180be5872acb9fc4e021b61492b71a0d9c9 100644 (file)
--- a/commit.c
+++ b/commit.c
@@ -917,9 +917,6 @@ long format_commit_message(const struct commit *commit, const void *format,
        }
        if (msg[i])
                table[IBODY].value = xstrdup(msg + i);
-       for (i = 0; i < ARRAY_SIZE(table); i++)
-               if (!table[i].value)
-                       interp_set_entry(table, i, "<unknown>");
 
        do {
                char *buf = *buf_p;