* bug#20609: 25.0.50; How to I easily generate the "action stamp" given a commit hash?
@ 2015-05-19 12:35 Dmitry Gutov
2017-11-27 13:08 ` Noam Postavsky
2019-09-29 23:57 ` Stefan Kangas
0 siblings, 2 replies; 5+ messages in thread
From: Dmitry Gutov @ 2015-05-19 12:35 UTC (permalink / raw)
To: 20609
CONTRIBUTE prohibits referencing commits the easy way, and instead asks
me to use "RFC3339 date followed by followed by the committer's email".
If reversing this decision is not an option, the least it could do it
provide a command-line invocation that would take a commit reference and
turn it into the action stamp in the specified format.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20609: 25.0.50; How to I easily generate the "action stamp" given a commit hash?
2015-05-19 12:35 bug#20609: 25.0.50; How to I easily generate the "action stamp" given a commit hash? Dmitry Gutov
@ 2017-11-27 13:08 ` Noam Postavsky
2019-09-29 23:57 ` Stefan Kangas
1 sibling, 0 replies; 5+ messages in thread
From: Noam Postavsky @ 2017-11-27 13:08 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 20609
[-- Attachment #1: Type: text/plain, Size: 703 bytes --]
Dmitry Gutov <dgutov@yandex.ru> writes:
> CONTRIBUTE prohibits referencing commits the easy way, and instead asks
> me to use "RFC3339 date followed by followed by the committer's email".
>
> If reversing this decision is not an option
I would like to propose doing away with this "action stamp" thing. It
is okay for its original purpose: an almost-guaranteed-unique identifier
for an automated repository format conversion tool. But it is not very
human-readable. It is fairly awkward to come up with a git command that
comes up with the correct UTC timestamp. We hardly use it anyway.
Giving just the date (no timestamp) plus summary line should be unique
enough, and is very human readable.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-diff, Size: 1199 bytes --]
From e2bfcc9f9a51e33215d30d4226216c029c182ec3 Mon Sep 17 00:00:00 2001
From: Noam Postavsky <npostavs@gmail.com>
Date: Mon, 27 Nov 2017 07:56:39 -0500
Subject: [PATCH] * CONTRIBUTE: Don't recommend action stamps (Bug#20609).
---
CONTRIBUTE | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/CONTRIBUTE b/CONTRIBUTE
index c324375bb0..79c127fbdc 100644
--- a/CONTRIBUTE
+++ b/CONTRIBUTE
@@ -232,10 +232,9 @@ them right the first time, so here are guidelines for formatting them:
switches to a different VCS. So we recommend against that.
One way to identify revisions is by quoting their summary line.
- Another is with an action stamp - an RFC3339 date followed by !
- followed by the committer's email - for example,
- "2014-01-16T05:43:35Z!esr@thyrsus.com". Often, "my previous commit"
- will suffice.
+ Prefixing the summary with the commit date can give useful context
+ (use 'git show -s "--pretty=format:%cd \"%s\"" --date=short HASH' to
+ produce that). Often, "my previous commit" will suffice.
- There is no need to mention files such as NEWS and MAINTAINERS, or
to indicate regeneration of files such as 'lib/gnulib.mk', in the
--
2.11.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* bug#20609: 25.0.50; How to I easily generate the "action stamp" given a commit hash?
2015-05-19 12:35 bug#20609: 25.0.50; How to I easily generate the "action stamp" given a commit hash? Dmitry Gutov
2017-11-27 13:08 ` Noam Postavsky
@ 2019-09-29 23:57 ` Stefan Kangas
2019-10-03 12:53 ` Noam Postavsky
1 sibling, 1 reply; 5+ messages in thread
From: Stefan Kangas @ 2019-09-29 23:57 UTC (permalink / raw)
To: Noam Postavsky; +Cc: 20609, Dmitry Gutov
Noam Postavsky <npostavs@users.sourceforge.net> writes:
> Dmitry Gutov <dgutov@yandex.ru> writes:
>
>> CONTRIBUTE prohibits referencing commits the easy way, and instead asks
>> me to use "RFC3339 date followed by followed by the committer's email".
>>
>> If reversing this decision is not an option
>
> I would like to propose doing away with this "action stamp" thing. It
> is okay for its original purpose: an almost-guaranteed-unique identifier
> for an automated repository format conversion tool. But it is not very
> human-readable. It is fairly awkward to come up with a git command that
> comes up with the correct UTC timestamp. We hardly use it anyway.
>
> Giving just the date (no timestamp) plus summary line should be unique
> enough, and is very human readable.
Nothing has happened here in two years, but I think it's a good idea
to get rid of action stamps and replace them with something that we
can easily generate. Noam's proposal seems to solve that.
Best regards,
Stefan Kangas
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20609: 25.0.50; How to I easily generate the "action stamp" given a commit hash?
2019-09-29 23:57 ` Stefan Kangas
@ 2019-10-03 12:53 ` Noam Postavsky
2020-09-25 14:11 ` Lars Ingebrigtsen
0 siblings, 1 reply; 5+ messages in thread
From: Noam Postavsky @ 2019-10-03 12:53 UTC (permalink / raw)
To: Stefan Kangas; +Cc: 20609, Dmitry Gutov
Stefan Kangas <stefan@marxist.se> writes:
> Noam Postavsky <npostavs@users.sourceforge.net> writes:
>
>> I would like to propose doing away with this "action stamp" thing. It
>> is okay for its original purpose: an almost-guaranteed-unique identifier
>> for an automated repository format conversion tool. But it is not very
>> human-readable. It is fairly awkward to come up with a git command that
>> comes up with the correct UTC timestamp. We hardly use it anyway.
I can add to this, it's not entirely clear whether the timestamp is
committer or author. https://gitlab.com/esr/reposurgeon/issues/144
>> Giving just the date (no timestamp) plus summary line should be unique
>> enough, and is very human readable.
>
> Nothing has happened here in two years,
There was some discussion on emacs-devel,
https://lists.gnu.org/r/emacs-devel/2018-07/msg00461.html
> but I think it's a good idea to get rid of action stamps and replace
> them with something that we can easily generate. Noam's proposal
> seems to solve that.
Yeah, I'm still inclined to remove action stamps. I guess we should
also add a way to easily generate date + summary given a commit hash
(giving the the git repo may be needed as well, e.g., for cases where
your mail buffer doesn't live in the git repository you're talking
about).
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#20609: 25.0.50; How to I easily generate the "action stamp" given a commit hash?
2019-10-03 12:53 ` Noam Postavsky
@ 2020-09-25 14:11 ` Lars Ingebrigtsen
0 siblings, 0 replies; 5+ messages in thread
From: Lars Ingebrigtsen @ 2020-09-25 14:11 UTC (permalink / raw)
To: Noam Postavsky; +Cc: 20609, Stefan Kangas, Dmitry Gutov
Noam Postavsky <npostavs@gmail.com> writes:
>>> Giving just the date (no timestamp) plus summary line should be unique
>>> enough, and is very human readable.
>>
>> Nothing has happened here in two years,
>
> There was some discussion on emacs-devel,
> https://lists.gnu.org/r/emacs-devel/2018-07/msg00461.html
I did not read the entire thread, but the first response was Eli saying
"OK", and I agree, so I've applied Noam's patch to Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-09-25 14:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-19 12:35 bug#20609: 25.0.50; How to I easily generate the "action stamp" given a commit hash? Dmitry Gutov
2017-11-27 13:08 ` Noam Postavsky
2019-09-29 23:57 ` Stefan Kangas
2019-10-03 12:53 ` Noam Postavsky
2020-09-25 14:11 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.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).