aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorJohn Keeping2016-01-19 19:33:02 +0000
committerJason A. Donenfeld2016-02-08 14:20:08 +0100
commit45c87ca1c32dcd5ffd4a681fadf05627d9ce7770 (patch)
tree72eed2b70999596c13ba3502caacaf91962e68df /cgit.h
parent57ea1aa2a5eab7f6aba702b3366fe4dcc72124f6 (diff)
downloadcgit-45c87ca1c32dcd5ffd4a681fadf05627d9ce7770.tar.gz
cgit-45c87ca1c32dcd5ffd4a681fadf05627d9ce7770.tar.bz2
cgit-45c87ca1c32dcd5ffd4a681fadf05627d9ce7770.zip
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 {
130 char *author; 130 char *author;
131 char *author_email; 131 char *author_email;
132 unsigned long author_date; 132 unsigned long author_date;
133 int author_tz;
133 char *committer; 134 char *committer;
134 char *committer_email; 135 char *committer_email;
135 unsigned long committer_date; 136 unsigned long committer_date;
137 int committer_tz;
136 char *subject; 138 char *subject;
137 char *msg; 139 char *msg;
138 char *msg_encoding; 140 char *msg_encoding;
@@ -142,6 +144,7 @@ struct taginfo {
142 char *tagger; 144 char *tagger;
143 char *tagger_email; 145 char *tagger_email;
144 unsigned long tagger_date; 146 unsigned long tagger_date;
147 int tagger_tz;
145 char *msg; 148 char *msg;
146}; 149};
147 150