-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Turn the "eternal" handbook date into symbols #1021
base: main
Are you sure you want to change the base?
Conversation
We fix the committer date in the handbook for reasons of reproducibility (no random shasum changes, simply because we execute code at a different time). Hence the dates/times shown do not really make sense (they appear constant, even across multiple steps of a procedure. This appears odd. This changeset replace the timestamps with symbolic placeholders. Their meaning still needs to be described in the intro. Ping #1009
The regex does not have the desired effect. Unclear why. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I figured out the regexp @mih (see inline comments), so if you are still interested in having the replacement, then we can go ahead. A TODO from the commit message ("their meaning still needs to be described in the intro") still applies.
FTR, this is what git log
run record from 101-101-create looks like in my browser:
(r'Tue Jun 18 16:13:00 2019 +0000', '🗓🕓'), | ||
(r'2019-06-18 16:13', '🗓🕓'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see two reasons why the regexp would not work:
- The plus symbol needs to be escaped (otherwise it's "space, one or more, followed by 0000")
- The time zone can not be taken for granted, the config sets git author & committer date to
2019-06-18T16:13:00
, and for me this produces run records with git log sayingTue Jun 18 16:13:00 2019 +0200
(I'm in CEST).
I'm also adding a space for IMHO better aesthetics.
(r'Tue Jun 18 16:13:00 2019 +0000', '🗓🕓'), | |
(r'2019-06-18 16:13', '🗓🕓'), | |
(r'Tue Jun 18 16:13:00 2019 \+\d{4}', '🗓 🕓'), | |
(r'2019-06-18 16:13', '🗓 🕓'), |
(r'Tue Jun 18 16:13:00 2019 +0000', '🗓🕓'), | ||
(r'2019-06-18 16:13', '🗓🕓'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We fix the committer date in the handbook for reasons of reproducibility (no random shasum changes, simply because we execute code at a different time). Hence the dates/times shown do not really make sense (they appear constant, even across multiple steps of a procedure. This appears odd.
This changeset replace the timestamps with symbolic placeholders.
Their meaning still needs to be described in the intro.
Ping #1009