From stsp@stsp.name Wed Nov 17 09:40:35 2021 X-Original-To: freebsd-git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 20B16183AD91 for ; Wed, 17 Nov 2021 09:40:44 +0000 (UTC) (envelope-from stsp@stsp.name) Received: from einhorn-mail-out.in-berlin.de (einhorn.in-berlin.de [192.109.42.8]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mail.in-berlin.de", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HvHwq6Ky9z3PwS for ; Wed, 17 Nov 2021 09:40:43 +0000 (UTC) (envelope-from stsp@stsp.name) X-Envelope-From: stsp@stsp.name Received: from authenticated.user (localhost [127.0.0.1]) by einhorn.in-berlin.de with ESMTPSA id 1AH9eZ3F016703 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 17 Nov 2021 10:40:36 +0100 Received: from localhost (benson.stsp.name [local]) by benson.stsp.name (OpenSMTPD) with ESMTPA id 79ad8308; Wed, 17 Nov 2021 10:40:35 +0100 (CET) Date: Wed, 17 Nov 2021 10:40:35 +0100 From: Stefan Sperling To: marklmi@yahoo.com Cc: Ulrich =?iso-8859-1?Q?Sp=F6rlein?= , Graham Perrin , freebsd-git Subject: Re: cgit, ages and chronological order Message-ID: Mail-Followup-To: marklmi@yahoo.com, Ulrich =?iso-8859-1?Q?Sp=F6rlein?= , Graham Perrin , freebsd-git References: <9766b3e1-fb5d-1993-46e2-057e2567315a@gmail.com> <36020FD7-32A4-4869-B6A2-2622F50F6478@yahoo.com> List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36020FD7-32A4-4869-B6A2-2622F50F6478@yahoo.com> X-Rspamd-Queue-Id: 4HvHwq6Ky9z3PwS X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N On Tue, Nov 16, 2021 at 02:32:52PM -0800, Mark Millard via freebsd-git wrote: > author George V. Neville-Neil 2021-11-10 17:51:42 +0000 > committer George V. Neville-Neil 2021-11-10 18:09:19 +0000 > > information being based on local git commit timing (and clocks) > vs. when the commits are pushed to FreeBSD servers: The display > order is from the timing on the FreeBSD servers but the Age is > based on the original commit (before the push). The longer the > delay between commit and push, the more noticeable the > distinction is. This is not how Git works. If the server changed the timestamp then it would also have to rewrite the commit object and change its hash. Git's server will only ever store objects as they arrived on the wire. Rather, both timestamps were created locally. The above looks as if the author used git-rebase or similar on their own commits. Some Git commands will update the committer field but leave the author field as it is. These fields contain email address and timestamp. Generally, sorting commits by committer timestamp will give the order most people would expect. Unless some client has an unsynced clock, and nothing can be done about that without a hypothetical smarter server and client which support server-side rewriting of commits during push.