diff options
-rw-r--r-- | builtin/am.c | 2 | ||||
-rw-r--r-- | cache.h | 1 | ||||
-rw-r--r-- | ident.c | 5 |
3 files changed, 8 insertions, 0 deletions
diff --git a/builtin/am.c b/builtin/am.c index d003939bc5..8058583a20 100644 --- a/builtin/am.c +++ b/builtin/am.c @@ -1840,6 +1840,8 @@ static void am_run(struct am_state *state, int resume) const char *mail = am_path(state, msgnum(state)); int apply_status; + reset_ident_date(); + if (!file_exists(mail)) goto next; @@ -1256,6 +1256,7 @@ extern const char *ident_default_email(void); extern const char *git_editor(void); extern const char *git_pager(int stdout_is_tty); extern int git_ident_config(const char *, const char *, void *); +extern void reset_ident_date(void); struct ident_split { const char *name_begin; @@ -186,6 +186,11 @@ static const char *ident_default_date(void) return git_default_date.buf; } +void reset_ident_date(void) +{ + strbuf_reset(&git_default_date); +} + static int crud(unsigned char c) { return c <= 32 || |