Thread (5 messages) flat view 5 messages, 3 authors, 2020-05-02

Re: git log --since=<date>

From: Dmitry Kulikov <hidden>
Date: 2020-05-02 05:54:11

On Friday 01 May 2020 15:03:10 Junio C Hamano wrote:
Dmitry Kulikov [off-list ref] writes:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help