summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-10-09 05:00:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-10-09 05:00:58 (GMT)
commit0b4fae553cdd5aa6713137e42cc03d396ecc1264 (patch)
tree95ea3924694592fa5c2dba1d7983d1946eb0615b /git-compat-util.h
parent042a54d2514c70f3a329189b141422d5f9726c13 (diff)
parent2e09c01232b1e1f5f383e62865b6049ff76270b3 (diff)
downloadgit-0b4fae553cdd5aa6713137e42cc03d396ecc1264.zip
git-0b4fae553cdd5aa6713137e42cc03d396ecc1264.tar.gz
git-0b4fae553cdd5aa6713137e42cc03d396ecc1264.tar.bz2
Merge branch 'sg/name-rev-cutoff-underflow-fix'
Integer arithmetic fix. * sg/name-rev-cutoff-underflow-fix: name-rev: avoid cutoff timestamp underflow
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index f0d13e4..d2e884e 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -344,6 +344,7 @@ typedef uintmax_t timestamp_t;
#define PRItime PRIuMAX
#define parse_timestamp strtoumax
#define TIME_MAX UINTMAX_MAX
+#define TIME_MIN 0
#ifndef PATH_SEP
#define PATH_SEP ':'