diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2017-04-21 12:45:44 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-04-23 20:19:15 -0700 |
commit | 1aeb7e756c82d31e46712ec7557c4cbae37dccd9 (patch) | |
tree | ab7e2a304b1a310d112bd168babd76b88714be2e /pretty.c | |
parent | efac8ac84b8802d654d517468dbe822273b316df (diff) | |
download | git-1aeb7e756c82d31e46712ec7557c4cbae37dccd9.tar.gz |
parse_timestamp(): specify explicitly where we parse timestamps
Currently, Git's source code represents all timestamps as `unsigned
long`. In preparation for using a more appropriate data type, let's
introduce a symbol `parse_timestamp` (currently being defined to
`strtoul`) where appropriate, so that we can later easily switch to,
say, use `strtoull()` instead.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pretty.c')
-rw-r--r-- | pretty.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -409,7 +409,7 @@ const char *show_ident_date(const struct ident_split *ident, long tz = 0; if (ident->date_begin && ident->date_end) - date = strtoul(ident->date_begin, NULL, 10); + date = parse_timestamp(ident->date_begin, NULL, 10); if (date_overflows(date)) date = 0; else { |