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

Re: git log --since=<date>

From
Junio C Hamano <gitster@pobox.com>
Date
May 1, 2020, 22:03 UTC
Message-ID
<xmqqd07nl3dt.fsf@gitster.c.googlers.com>
In-Reply-To
<3860060.ab4mYtCOl4@hp470>
Dmitry Kulikov <dima@koulikoff.ru> writes:
Show 6 quoted lines
> I have found a problem.
>
> It turned out, that the timestamp used to determinate which commit is later 
> the given date is not at 0h 0m 0s, Instead it is at the current time.
>
> Similarly --until=<date> uses not 23h 59m 59s but also current time.

The behaviour is as designed. "git log --since=yesterday" does the same "as nobody said which hour and minute, we take it to mean this time yesterday".

You of course can say "git log --since=yesterday.midnight" if you want to be exact ;-).

Previous: Dmitry KulikovNext: Dmitry Kulikov
Message 2 of 7 in “git log --since=<date>”
  1. Dmitry KulikovMay 1, 2020
  2. Junio C HamanoMay 1, 2020
  3. Dmitry KulikovMay 2, 2020
  4. Danh DoanMay 2, 2020
  5. Dmitry KulikovMay 2, 2020
  6. Junio C HamanoMay 2, 2020
  7. Dmitry KulikovMay 2, 2020

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.