introduce "format" date-mode
[gitweb.git] / builtin / blame.c
index 474da66ce435095836f0910bb88d058e4a2d93dc..7cc499dd347e96239b13d6e15fd142b1e321d53a 100644 (file)
@@ -2604,6 +2604,9 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
        case DATE_NORMAL:
                blame_date_width = sizeof("Thu Oct 19 16:00:04 2006 -0700");
                break;
+       case DATE_STRFTIME:
+               blame_date_width = strlen(show_date(0, 0, &blame_date_mode)) + 1; /* add the null */
+               break;
        }
        blame_date_width -= 1; /* strip the null */