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

Re: bug report: dates on diff

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 6, 2017, 18:05 UTC
Message-ID
<xmqq7ezlfnk7.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<xmqqbmoxfnns.fsf@gitster.mtv.corp.google.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 19 quoted lines
> Imagine this scenario:
>
>  - Contributor A writes a change on 2017-07-01 and send it in to me
>  - Contributor B writes a change on 2017-07-03 and send it in to me
>  - I apply change from B on 2017-07-04 on 'master'
>  - I apply change from A on 2017-07-05 on 'master'
>  - You clone the resulting repository from me on 2017-07-06
>
> Now, you have at the tip of 'master' in your repository the commit
> that records the change by contributor A.
>
> And there are three times that are relevant to your tip of 'master'.
>
>  - When was the commit that sits at the tip of 'master' made?
>  - When was the change recorded in that commit made?
>  - When was the commit made at the tip of _your_ 'master'?
>
> and the answers are 2017-07-01, 2017-07-05 and 2017-07-06, respectively.
> They are called "committer", "author" and "reflog" timestamps.

Oops, obviously the dates have to be 2017-07-05, 2017-07-01 and 2017-07-06. I made the commit on the 5th (i.e. "committer" timestamp) that records a change written on the 1st (i.e. "author" timestamp).

Previous: Junio C Hamano
Message 5 of 5 in “bug report: dates on diff”
  1. Todd LewisJul 6, 2017
  2. Junio C HamanoJul 6, 2017
  3. Todd LewisJul 6, 2017
  4. Junio C HamanoJul 6, 2017
  5. Junio C HamanoJul 6, 2017

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.