summaryrefslogtreecommitdiff
path: root/kwset.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2017-08-19 18:16:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-22 21:51:02 (GMT)
commit5ea82279c066f51d446b344e82492a3554409d7d (patch)
tree5273d61443d17a427ce326d6822680c640c3a05e /kwset.h
parente579aaa64d8a24013de6cdd3fb3028e25d9a0917 (diff)
downloadgit-5ea82279c066f51d446b344e82492a3554409d7d.zip
git-5ea82279c066f51d446b344e82492a3554409d7d.tar.gz
git-5ea82279c066f51d446b344e82492a3554409d7d.tar.bz2
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>
Diffstat (limited to 'kwset.h')
0 files changed, 0 insertions, 0 deletions