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

2017-11-20 Thread hsed
On 2017-11-18 03:37, Junio C Hamano wrote: I think this is more correct even within the context of this function than dying, which suggests the need for a slightly related (which is not within the scope of this change) clean-up within this file as a #leftoverbits task. I think dying in these va

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

2017-11-17 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 timestamps. This is useful for scripts (e.g. gc.reflogexpire) that work with timestamps so that '2.weeks' can be converted to

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

[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

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

2017-11-15 Thread hsed
On 2017-11-14 06:38, Junio C Hamano wrote: h...@unimetic.com writes: From: Haaris Description: This patch adds a new option to the config command. ... Motivation: A parse_expiry_date() function already existed for api calls, this patch simply allows the function to be used from the command

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

2017-11-13 Thread hsed
From: Haaris Description: This patch adds a new option to the config command. Uses flag --expiry-date as a data-type to covert date-strings to timestamps when reading from config files (GET). This flag is ignored on write (SET) because the date-string is stored in config without performing any n

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

2017-11-13 Thread hsed
Description: This patch adds a new option to the config command. Enables flag --expiry-date as a data-type to covert date-strings to timestamps when reading from config files (GET). This flag is ignored on write (SET) because the date-string is stored in config without performing any normalizatio

Re: [PATCH] config: added --expiry-date type support

2017-11-12 Thread hsed
On 2017-11-12 14:55, Jeff King wrote: Hi, and welcome to the list. Thanks for working on this (for those of you on the list, this was one of the tasks at the hackathon this weekend). It was a pleasure meeting everyone and a great experience! Kevin already mentioned a few things about the com

[no subject]

2017-11-12 Thread hsed
subscribe git

[no subject]

2017-11-11 Thread hsed
subscribe git