aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2016-01-19 20:33:02 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2016-02-08 14:20:08 +0100
commit45c87ca1c32dcd5ffd4a681fadf05627d9ce7770 (patch)
tree72eed2b70999596c13ba3502caacaf91962e68df /cgit.h
parent57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6 (diff)
downloadcgit-45c87ca1c32dcd5ffd4a681fadf05627d9ce7770.tar.gz
cgit-45c87ca1c32dcd5ffd4a681fadf05627d9ce7770.tar.xz
parsing: add timezone to ident structures
This will allow us to mimic Git's behaviour of showing times in the originator's timezone when displaying commits and tags. Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index de5c94a..501cb48 100644
--- a/cgit.h
+++ b/cgit.h
@@ -130,9 +130,11 @@ struct commitinfo {
char *author;
char *author_email;
unsigned long author_date;
+ int author_tz;
char *committer;
char *committer_email;
unsigned long committer_date;
+ int committer_tz;
char *subject;
char *msg;
char *msg_encoding;
@@ -142,6 +144,7 @@ struct taginfo {
char *tagger;
char *tagger_email;
unsigned long tagger_date;
+ int tagger_tz;
char *msg;
};