aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorRobin Rosenberg <robin.rosenberg@dewire.com>2007-07-14 01:00:42 +0200
committerJunio C Hamano <gitster@pobox.com>2007-07-13 22:47:49 -0700
commitee8f838e0346751b21250f8d107049829b855a98 (patch)
tree1c64640d85fff10072e4e57eff1cedd3c4dc13aa /cache.h
parentd60a6a662fac58f833efde93c962314fd5d83541 (diff)
downloadgit-ee8f838e0346751b21250f8d107049829b855a98.tar.gz
git-ee8f838e0346751b21250f8d107049829b855a98.tar.xz
Support output ISO 8601 format dates
Support output of full ISO 8601 style dates in e.g. git log and other places that use interpolation for formatting. Signed-off-by: Robin Rosenberg <robin.rosenberg@dewire.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index 917a7e34f..b39557dd0 100644
--- a/cache.h
+++ b/cache.h
@@ -409,7 +409,7 @@ extern void *read_object_with_reference(const unsigned char *sha1,
unsigned long *size,
unsigned char *sha1_ret);
-enum date_mode { DATE_NORMAL = 0, DATE_RELATIVE, DATE_SHORT, DATE_LOCAL };
+enum date_mode { DATE_NORMAL = 0, DATE_RELATIVE, DATE_SHORT, DATE_LOCAL, DATE_ISO8601 };
const char *show_date(unsigned long time, int timezone, enum date_mode mode);
const char *show_rfc2822_date(unsigned long time, int timezone);
int parse_date(const char *date, char *buf, int bufsize);