summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Michael J Gruber <git@grubix.eu>2017-08-30 11:46:06 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-06 12:55:08 +0900
commit5554451de61cb90e530f30b96e62d455e1eff6a1 (patch)
treef56eda79ae1a2ede2dd09d395007ce2631c62d66
parentMerge branch 'jc/name-rev-lw-tag' (diff)
downloadtgif-5554451de61cb90e530f30b96e62d455e1eff6a1.tar.xz
name-rev: change ULONG_MAX to TIME_MAX
Earlier, dddbad728c ("timestamp_t: a new data type for timestamps", 2017-04-26) changed several types to timestamp_t. 5589e87fd8 ("name-rev: change a "long" variable to timestamp_t", 2017-05-20) cleaned up a missed variable, but both missed a _MAX constant. Change the remaining constant to the one appropriate for the current type Signed-off-by: Michael J Gruber <git@grubix.eu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--builtin/name-rev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/name-rev.c b/builtin/name-rev.c
index 663e26ebbd..fff2ea7436 100644
--- a/builtin/name-rev.c
+++ b/builtin/name-rev.c
@@ -252,7 +252,7 @@ static int name_ref(const char *path, const struct object_id *oid, int flags, vo
struct commit *commit = (struct commit *)o;
int from_tag = starts_with(path, "refs/tags/");
- if (taggerdate == ULONG_MAX)
+ if (taggerdate == TIME_MAX)
taggerdate = ((struct commit *)o)->date;
path = name_ref_abbrev(path, can_abbreviate_output);
name_rev(commit, xstrdup(path), taggerdate, 0, 0,