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

Re: [PATCH] commit: use timestamp_t for author_date_slab

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 21, 2018, 21:05 UTC
Message-ID
<xmqqy3cz77n4.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180821205359.29569-1-dstolee@microsoft.com>
Derrick Stolee <dstolee@microsoft.com> writes:
Show 13 quoted lines
> The author_date_slab is used to store the author date of a commit
> when walking with the --author-date flag in rev-list or log. This
> was added as an 'unsigned long' in
>
> 	81c6b38b "log: --author-date-order"
>
> Since 'unsigned long' is ambiguous in its bit-ness across platforms
> (64-bit in Linux, 32-bit in Windows, for example), most references
> to the author dates in commit.c were converted to timestamp_t in
>
> 	dddbad72 "timestamp_t: a new data type for timestamps"
>
> However, the slab definition was missed,
Makes sense, and obviously correct.
> I found this while reading up on the revision-walk machinery. This code
> hasn't been touched in years, so could apply to 'maint'.
Thanks.
Previous: Derrick Stolee
Message 2 of 2 in “commit: use timestamp_t for author_date_slab”
  1. commit: use timestamp_t for author_date_slabDerrick Stolee, Aug 21, 2018
  2. Junio C HamanoAug 21, 2018

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.