From owner-freebsd-git@freebsd.org Wed May 29 03:20:17 2019 Return-Path: Delivered-To: freebsd-git@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id DA5CA15B48AD for ; Wed, 29 May 2019 03:20:17 +0000 (UTC) (envelope-from devin@shxd.cx) Received: from shxd.cx (mail.shxd.cx [64.201.244.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 0BC1A76C52; Wed, 29 May 2019 03:20:17 +0000 (UTC) (envelope-from devin@shxd.cx) Received: from [76.77.180.168] (port=60000 helo=[192.168.86.51]) by shxd.cx with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.77 (FreeBSD)) (envelope-from ) id 1hVohB-000386-7p; Tue, 28 May 2019 19:52:05 -0700 From: Devin Teske Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) Date: Tue, 28 May 2019 20:20:05 -0700 Subject: Git handling of commit times Message-Id: <8697933A-B813-4088-90B7-A84589C3CD33@freebsd.org> Cc: dteske@FreeBSD.org To: freebsd-git@freebsd.org X-Mailer: iPhone Mail (15D60) Sender: devin@shxd.cx X-Rspamd-Queue-Id: 0BC1A76C52 X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [4.59 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[freebsd.org]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.82)[0.818,0]; IP_SCORE(0.13)[ip: (0.38), ipnet: 64.201.240.0/20(0.19), asn: 36734(0.15), country: US(-0.06)]; NEURAL_SPAM_SHORT(0.96)[0.963,0]; MX_GOOD(-0.01)[mail.shxd.cx]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.98)[0.985,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[dteske@freebsd.org,devin@shxd.cx]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:36734, ipnet:64.201.240.0/20, country:US]; FROM_NEQ_ENVFROM(0.00)[dteske@freebsd.org,devin@shxd.cx]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-git@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion of git use in the FreeBSD project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2019 03:20:18 -0000 >=20 > Did anyone ever find an elegant solution to preventing the following edge-= case? >=20 > 1. Committer uses a VM but keeps it paused most of the time >=20 > 2. Committer unpauses VM and makes a commit without first running ntpdate t= o correct the clock of the paused VM >=20 > 3. Committer pushes commit with a timestamp that predates the timestamp fo= r the previous commit on the file in-question >=20 > In this case, GitHub renders the commits our of order. If memory serves, "= git log" will show them in the proper order, but github web interface shows t= hem in wrong order. >=20 > I think there was some talk of a hook to prevent timestamps moving backwar= d with respect to each object being touched in a pushed commit -- is this ev= en possible to prevent? >=20 > Is this no longer an issue? Just looking for clarification on a genuine co= ncern. > --=20 > Devin Forwarding by request to ML =E2=80=94=20 Devin=