From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS53758 23.128.96.0/24 X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_PASS, SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by dcvr.yhbt.net (Postfix) with ESMTP id 917811F8C1 for ; Sat, 2 May 2020 05:54:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726520AbgEBFyJ (ORCPT ); Sat, 2 May 2020 01:54:09 -0400 Received: from hz00.koulikoff.ru ([78.46.42.68]:59398 "EHLO smtp.koulikoff.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726439AbgEBFyJ (ORCPT ); Sat, 2 May 2020 01:54:09 -0400 Received: from p5b01d7dc.dip0.t-ipconnect.de ([91.1.215.220] helo=hp470.localnet) by smtp.koulikoff.ru with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86) (envelope-from ) id 1jUl6F-0003Y0-IN; Sat, 02 May 2020 07:54:07 +0200 From: Dmitry Kulikov To: Junio C Hamano Cc: git@vger.kernel.org Subject: Re: git log --since= Date: Sat, 02 May 2020 07:54:03 +0200 Message-ID: <42953119.Wv2erQna2g@hp470> User-Agent: KMail/4.14.10 (Linux/4.4.219; KDE/4.14.38; x86_64; ; ) In-Reply-To: References: <3860060.ab4mYtCOl4@hp470> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Envelope-Sender: dima@koulikoff.ru Envelope-Recipients: gitster@pobox.com, git@vger.kernel.org Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org On Friday 01 May 2020 15:03:10 Junio C Hamano wrote: > Dmitry Kulikov 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= 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=, --after= 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