summary refs log tree commit diff
path: root/ident.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2016-08-10 12:33:17 -0700
committerJunio C Hamano <gitster@pobox.com>2016-08-10 12:33:17 -0700
commit24fbe004904f95ea07f22fea4e4c02a632149d73 (patch)
treef2caff74a5ef0d89df2c170ea5784847addbfd40 /ident.c
parenta0a1831b034af10e5d5b37b99489a7558f9cc547 (diff)
parent4d9c7e6f45523ce1bf9615689e6c4e13fd82ed5d (diff)
Merge branch 'jk/reset-ident-time-per-commit'
Not-so-recent rewrite of "git am" that started making internal
calls into the commit machinery had an unintended regression, in
that no matter how many seconds it took to apply many patches, the
resulting committer timestamp for the resulting commits were all
the same.

* jk/reset-ident-time-per-commit:
  am: reset cached ident date for each patch
Diffstat (limited to 'ident.c')
-rw-r--r--ident.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ident.c b/ident.c
index 139c5289d0..e20a772dde 100644
--- a/ident.c
+++ b/ident.c
@@ -184,6 +184,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  ||