commit: use timestamp_t for author_date_slab

The author_date_slab is used to store the author date of a commit when walking with the --author-date flag in rev-list or log. This was added as an 'unsigned long' in 81c6b38b "log: --author-date-order" Since 'unsigned long' is ambiguous in its bit-ness across platforms (64-bit in Linux, 32-bit in Windows, for example), most references to the author dates in commit.c were converted to timestamp_t in dddbad72 "timestamp_t: a new data type for timestamps" However, the slab definition was missed, leading to a mismatch in the data types in Windows. This would not reveal itself as a bug unless someone authors a commit after February 2106, but commits can store anything as their author date. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Derrick Stolee committed Aug 21, 2018 at 20:54 UTC 1820703045f8974bc5320d08a3611f4e29c83bf9
1 file changed +1 -1
commit.c
+1 -1
@@ -588,7 +588,7 @@ struct commit *pop_commit(struct commit_list **stack)
588 define_commit_slab(indegree_slab, int);
589
590 /* record author-date for each commit object */
591 -define_commit_slab(author_date_slab, unsigned long);
591 +define_commit_slab(author_date_slab, timestamp_t);
592
593 static void record_author_date(struct author_date_slab *author_date,
594 struct commit *commit)