Re: [Bug Report] The since date of "git log" will have influence on the until date of it.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Wang, Lei" <lei4.wang@xxxxxxxxx> writes:

> The since date of "git log --since" will have influence on the until
> date of it.
>
> How to reproduce?
>
> 1. clone this repo https://erol.kernel.org/lkml/git/8/
> 2. run "git log --since="2020-05-30" --until="2020-06-02"", it won't
>    output anything
> 3. change the since date to 2020-05-29: run "git log
>    --since="2020-05-29" --until="2020-06-02""
> 4. it will output the commits in 2020-06-02 (The until date)
>
> Why would that happen, I just change the since date from 2020-05-30 to
> 2020-05-29, why it suddenly output the commits in 2020-06-02?

Perhaps there are clock skews in the history recorded in the
repository?  IOW, some commits have committer dates that are older
than those of their ancestors?

For example, if you had a commit that has committer date of June 1st
noon, and one of its children has committer date of May 29th noon,
starting the history traversal from that misdated child and saying
"I don't want to see commits before May 30th midnight, so stop the
traversal immediately if you see a commit with timestamp older than
that" with "--since=May.30th", the traversal stops even before the
misdated child is shown.  If you shift the cut-off date and ask to
stop at May 29th midnight, then the misdated child is newer than
that cut-off date and would be shown, and its parent, which has the
date of June 1st, would also be shown.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux