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

Re: git log --since=<date>

From
DKDmitry Kulikov <dima@koulikoff.ru>
Date
May 2, 2020, 05:54 UTC
Message-ID
<42953119.Wv2erQna2g@hp470>
In-Reply-To
<xmqqd07nl3dt.fsf@gitster.c.googlers.com>
On Friday 01 May 2020 15:03:10 Junio C Hamano wrote:
Show 12 quoted lines
> Dmitry Kulikov <dima@koulikoff.ru> writes:
> > 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".
  In the documentation it is not described this way. It is said:
       --since=<date>, --after=<date>
           Show commits more recent than a specific date.
  Nothing is said about the time I entered the command.
> You of course can say "git log --since=yesterday.midnight" if you
> want to be exact ;-).
  What should I enter instead --since=2020-05-01 to have a midnight time?
-- 
With best regards,
   Dmitry Kulikov

mailto:dima@koulikoff.ru
skype: dima.koulikoff
phone: +49 151 6338 5032
Viber, WhatsApp: +7 925 505 2185
Previous: Junio C HamanoNext: Danh Doan
Message 3 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.