Date: Wed, 17 Nov 2021 10:40:35 +0100 From: Stefan Sperling <stsp@stsp.name> To: marklmi@yahoo.com Cc: Ulrich =?iso-8859-1?Q?Sp=F6rlein?= <uqs@freebsd.org>, Graham Perrin <grahamperrin@gmail.com>, freebsd-git <freebsd-git@freebsd.org> Subject: Re: cgit, ages and chronological order Message-ID: <YZTOE5jPwxXrkgbY@benson.stsp.name> In-Reply-To: <36020FD7-32A4-4869-B6A2-2622F50F6478@yahoo.com> References: <9766b3e1-fb5d-1993-46e2-057e2567315a@gmail.com> <CAJ9axoT6kEwC%2Bt5zHSKPSFgFmaOt8-CXPAG5jsanWobT4LZhpA@mail.gmail.com> <36020FD7-32A4-4869-B6A2-2622F50F6478@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Nov 16, 2021 at 02:32:52PM -0800, Mark Millard via freebsd-git wrote: > author George V. Neville-Neil <gnn@FreeBSD.org> 2021-11-10 17:51:42 +0000 > committer George V. Neville-Neil <gnn@FreeBSD.org> 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?YZTOE5jPwxXrkgbY>