git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] name-rev: avoid cutoff timestamp underflow

From
brian m. carlson <sandals@crustytoothpaste.net>
Date
Sep 23, 2019, 01:42 UTC
Message-ID
<20190923012838.3hzai6ho7vjjhkpb@camp.crustytoothpaste.net>
In-Reply-To
<20190922180143.25026-1-szeder.dev@gmail.com>
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
Previous: SZEDER GáborNext: SZEDER Gábor
Message 9 of 11 in “name-rev: avoid cutoff timestamp underflow”
  1. name-rev: avoid cutoff timestamp underflowSZEDER Gábor, Sep 22, 2019
  2. Phillip WoodSep 22, 2019
  3. SZEDER GáborSep 22, 2019
  4. Johannes SixtSep 22, 2019
  5. SZEDER GáborSep 23, 2019
  6. Phillip WoodSep 23, 2019
  7. Johannes SixtSep 23, 2019
  8. SZEDER GáborSep 24, 2019
  9. brian m. carlsonSep 23, 2019
  10. SZEDER GáborSep 23, 2019
  11. name-rev: avoid cutoff timestamp underflowSZEDER Gábor, Sep 24, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.