]> git.ipfire.org Git - thirdparty/git.git/commit - rerere.c
rerere: represent time duration in timestamp_t internally
authorJunio C Hamano <gitster@pobox.com>
Sat, 19 Aug 2017 18:16:01 +0000 (11:16 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 22 Aug 2017 21:51:02 +0000 (14:51 -0700)
commit5ea82279c066f51d446b344e82492a3554409d7d
tree5273d61443d17a427ce326d6822680c640c3a05e
parente579aaa64d8a24013de6cdd3fb3028e25d9a0917
rerere: represent time duration in timestamp_t internally

The two configuration variables, gc.rerereResolved and
gc.rerereUnresolved, are measured in days and are passed as such
into the prune_one() helper function, which worked in time_t to see
if an entry in the rerere database is past its expiry.

Instead, have the caller turn the number of days into the expiry
timestamp.  Further, use timestamp_t instead of time_t.  This will
make it possible to extend the way the configuration variable is
spelled by using date.c::parse_expiry_date() that gives the expiry
timestamp in timestamp_t.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
rerere.c