Re: git log --since=<date>
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