Re: [PATCH] name-rev: avoid cutoff timestamp underflow
On 2019-09-22 at 18:01:43, SZEDER Gábor wrote:
Show 11 quoted lines
> diff --git a/builtin/name-rev.c b/builtin/name-rev.c
> index c785fe16ba..a4d8d312ab 100644
> --- a/builtin/name-rev.c
> +++ b/builtin/name-rev.c
> @@ -9,7 +9,11 @@
> #include "sha1-lookup.h"
> #include "commit-slab.h"
>
> -#define CUTOFF_DATE_SLOP 86400 /* one day */
> +/*
> + * One day. See the 'name a rev close to epoch' test in t6120 when
This piece of code says "close to"…
> +test_expect_success 'name-rev a rev shortly after epoch' '
…but this says "shortly after."
Overall, I think the idea is definitely sane, though.
--
brian m. carlson: Houston, Texas, US
OpenPGP: https://keybase.io/bk2204