unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: zimoun <zimon.toutoune@gmail.com>
Cc: guix-devel@gnu.org
Subject: Re: [outreachy] “guix git log --date=”
Date: Mon, 01 Feb 2021 20:41:01 +0000	[thread overview]
Message-ID: <87lfc7frmq.fsf@cbaines.net> (raw)
In-Reply-To: <8635yfefge.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1652 bytes --]


zimoun <zimon.toutoune@gmail.com> writes:

> As discussed today at our weekly meeting, it could be cool to add the
> option:
>
>   guix git log --date=YYYY-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 “guix time-machine”.  The use case I am interested is 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=2021-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/f5f642058a3b6bf3eda5eb714ad5fa1f0a2b1b20

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

  reply	other threads:[~2021-02-01 20:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-01 19:49 [outreachy] “guix git log --date=” zimoun
2021-02-01 20:41 ` Christopher Baines [this message]
2021-02-01 21:44   ` zimoun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfc7frmq.fsf@cbaines.net \
    --to=mail@cbaines.net \
    --cc=guix-devel@gnu.org \
    --cc=zimon.toutoune@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).