From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qLvHBnJnGGCmQQAA0tVLHw (envelope-from ) for ; Mon, 01 Feb 2021 20:41:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2C2iAnJnGGCKYAAAbx9fmQ (envelope-from ) for ; Mon, 01 Feb 2021 20:41:22 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 65BAF9402AB for ; Mon, 1 Feb 2021 20:41:21 +0000 (UTC) Received: from localhost ([::1]:59898 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6g0e-0002US-3F for larch@yhetil.org; Mon, 01 Feb 2021 15:41:20 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:33746) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6g0S-0002UK-Jx for guix-devel@gnu.org; Mon, 01 Feb 2021 15:41:08 -0500 Received: from mira.cbaines.net ([212.71.252.8]:33242) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6g0Q-0000Lj-1N for guix-devel@gnu.org; Mon, 01 Feb 2021 15:41:07 -0500 Received: from localhost (unknown [IPv6:2a02:8010:68c1:0:8ac0:b4c7:f5c8:7caa]) by mira.cbaines.net (Postfix) with ESMTPSA id ED80A27BC1D; Mon, 1 Feb 2021 20:41:03 +0000 (GMT) Received: from capella (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 07aaea88; Mon, 1 Feb 2021 20:41:03 +0000 (UTC) References: <8635yfefge.fsf@gmail.com> User-agent: mu4e 1.4.14; emacs 27.1 From: Christopher Baines To: zimoun Subject: Re: [outreachy] =?utf-8?Q?=E2=80=9Cguix?= git log =?utf-8?Q?--dat?= =?utf-8?Q?e=3D=E2=80=9D?= In-reply-to: <8635yfefge.fsf@gmail.com> Date: Mon, 01 Feb 2021 20:41:01 +0000 Message-ID: <87lfc7frmq.fsf@cbaines.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=212.71.252.8; envelope-from=mail@cbaines.net; helo=mira.cbaines.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 65BAF9402AB X-Spam-Score: -4.46 X-Migadu-Scanner: scn1.migadu.com X-TUID: kb5Ewc9PfjUG --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable zimoun writes: > As discussed today at our weekly meeting, it could be cool to add the > option: > > guix git log --date=3DYYYY-MM-DD > > listing the first (resp. last) commit date of the day. Or maybe all the > commits of the days. Using this information would be really useful to > feed =E2=80=9Cguix time-machine=E2=80=9D. The use case I am interested i= s to easily > find the commit when I only know the date of publication/submission of > the paper. I'd be a little careful about the implementation of this, commits have a commit date, and author date, but neither of these things tell you when commits were on a given branch. Take the following commit for example: f5f642058a3b6bf3eda5eb714ad5fa1f0a2b1b20 [1] Would it be shown when running the following? guix git log --date=3D2021-01-17 It's commit date is the 17th, so maybe yes? But this commit didn't actually turn up on the master branch until the 18th, at least according to the Guix Data Service [2]. Taking your paper use case, if I produce some results on the 17th, even perhaps stating the time down to the second, and then you using the commit date of commits try to reproduce the environment, you're going to get some commits that I didn't have. Approaches that work most of the time, or have subtleties that might not be immediately obvious make me a little nervous. 1: commit f5f642058a3b6bf3eda5eb714ad5fa1f0a2b1b20 AuthorDate: Sun Jan 3 16:26:16 2021 CommitDate: Sun Jan 17 23:07:29 2021 gnu: wxmaxima: Update to 20.12.2. 2: https://data.guix.gnu.org/revision/f5f642058a3b6bf3eda5eb714ad5fa1f0a2b1= b20 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKlBAEBCgCPFiEEPonu50WOcg2XVOCyXiijOwuE9XcFAmAYZ11fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDNF ODlFRUU3NDU4RTcyMEQ5NzU0RTBCMjVFMjhBMzNCMEI4NEY1NzcRHG1haWxAY2Jh aW5lcy5uZXQACgkQXiijOwuE9Xf8JBAAh8CRNIc8Ppa2HVulc08GW+9HC07Cc3cH U6VmpU2yjvo26W+xL4REJpMurV0MC5NYcn7GL5K7Kd8TSRyjI+LjBUqMVYXJiL5W ab8jhwkQFkH+4t4qvuGa/3367RGxW1EzSh8dFUJKn1bKpImfPKm/+pTn1lp3LQZ+ WZT81Gzh+HITqaTt63GYeTTEDq3z7TlbLHKe8WXGbYgJn0TwZiaWz+b0xID3YPss n19+FbAq1iDZXJEZxWMY/j5WMJeLD5Mjzx11HF8TTHp3OwvWx8yK3J5y8zJOaZDO 9DBkzoDqij+JMdgZLn0dpvLuCxWwEyNqFvHOmT2PykieFDl11/786yUzf7I6kGqx /D3YaPf6kiDbjYFnkQaoEonwcxOAnx+i5m1yHuIBXJ5FUGDsMMYtj1e2PmeGFTfR 1xF4EkeABntAWyyadDN3aWvZXSG665k96Qyb3Ti6pqhSFrf3zfZr5OgSdip1lk2K x0/P4E/GT5j7abliu1uZleHlNcHXUucPMSGK0f/5gyHIrvjoWOg54+HH6WORCA9Q OaG6eVGXYoPfID/nrD1kN7K/ukSLwGBKKBNCdk2NwlbDyhcF1hBgWq39Vv2gCY0F ZpNypY8wnpPlwSODVFft7BYVmiYTKCkjpsQ3Pj9FT13GDwrY4zjGtbJmzJqGeRjp BDJFOEiTCbM= =H8rp -----END PGP SIGNATURE----- --=-=-=--