Re: [PATCH V3] config: add --expiry-date

2017-11-17 Thread hsed
On 2017-11-16 00:54, Junio C Hamano wrote: - if (parse_expiry_date(value, expire)) - return error(_("'%s' for '%s' is not a valid timestamp"), -value, var); ... + if (parse_expiry_date(value, timestamp)) + die(_("failed to pars

Re: [PATCH V3] config: add --expiry-date

2017-11-15 Thread Junio C Hamano
h...@unimetic.com writes: > From: Haaris Mehmood > > Add --expiry-date as a data-type for config files when > 'git config --get' is used. This will return any relative > or fixed dates from config files as a timestamp value. > > This is useful for scripts (e.g. gc.reflogexpire) that work > with

[PATCH V3] config: add --expiry-date

2017-11-15 Thread hsed
From: Haaris Mehmood Add --expiry-date as a data-type for config files when 'git config --get' is used. This will return any relative or fixed dates from config files as a timestamp value. This is useful for scripts (e.g. gc.reflogexpire) that work with timestamps so that '2.weeks' can be conve