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

Re: [BUG] minor: wrong handling of GIT_AUTHOR_DATE

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Aug 17, 2008, 16:07 UTC
Message-ID
<alpine.LFD.1.10.0808170905540.3324@nehalem.linux-foundation.org>
In-Reply-To
<7vljyw9pok.fsf@gitster.siamese.dyndns.org>
On Sat, 16 Aug 2008, Junio C Hamano wrote:
> 
> Is this because we do not initialize tm fields to "unknown" in the
> beginning?  I admit I haven't bothered to look at this part of the code
> for a looong time.

Indeed. The _exact_ date handling initializes the date to -1 (and the time to 0), but the approxidate thing defaults to "now" and then modifies that.

Which is why we'd need to have a separate flags field for "I have initialized this field".

		Linus
Previous: Junio C HamanoNext: Linus Torvalds
Message 9 of 10 in “[BUG] minor: wrong handling of GIT_AUTHOR_DATE”
  1. Hermann GaustererAug 16, 2008
  2. Linus TorvaldsAug 16, 2008
  3. Linus TorvaldsAug 16, 2008
  4. Junio C HamanoAug 17, 2008
  5. Junio C HamanoAug 17, 2008
  6. Linus TorvaldsAug 17, 2008
  7. Linus TorvaldsAug 17, 2008
  8. Junio C HamanoAug 17, 2008
  9. Linus TorvaldsAug 17, 2008
  10. Linus TorvaldsAug 17, 2008

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.