* Fixing commit dates before pushing
@ 2026-05-12 8:19 Tom de Vries via Gdb
2026-05-12 11:57 ` Eli Zaretskii via Gdb
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Tom de Vries via Gdb @ 2026-05-12 8:19 UTC (permalink / raw)
To: gdb
Hi,
back in 2014, a requirement was added to the contribution checklist:
fixing commit dates (
https://sourceware.org/gdb/wiki/ContributionChecklist#Fixing_commit_dates ).
The related discussion is here (
https://inbox.sourceware.org/gdb/20140814083231.GA6283@blade.nx/T/#u ).
Looking at recent commits, this is done by a few people, but not everybody.
[ FWIW, I'm using a push script (see below) that takes care of this for
me. ]
If not too many people actually do this, and nobody's complaining about
it, should we drop the requirement?
Otherwise, perhaps we could invest in some pre-commit infrastructure to
enforce/implement this more easily.
Thanks,
- Tom
$ cat ../push.sh
#!/bin/sh
set -e
branch=$(git branch \
| grep "\*" \
| awk '{print $2}')
echo "REMINDER: Did you apply the Approved-By/Tested-By/Reviewed-By tags?"
echo
echo "Push branch $branch upstream?"
echo "Press ^C to cancel"
read
git fetch -fp origin
git rebase --ignore-date origin/$branch
git push --set-upstream origin $branch:$branch
$
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Fixing commit dates before pushing
2026-05-12 8:19 Fixing commit dates before pushing Tom de Vries via Gdb
@ 2026-05-12 11:57 ` Eli Zaretskii via Gdb
2026-05-12 14:58 ` Arsen Arsenović via Gdb
2026-05-12 14:15 ` Simon Marchi via Gdb
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Eli Zaretskii via Gdb @ 2026-05-12 11:57 UTC (permalink / raw)
To: Tom de Vries; +Cc: gdb
> Date: Tue, 12 May 2026 10:19:26 +0200
> From: Tom de Vries via Gdb <gdb@sourceware.org>
>
> Hi,
>
> back in 2014, a requirement was added to the contribution checklist:
> fixing commit dates (
> https://sourceware.org/gdb/wiki/ContributionChecklist#Fixing_commit_dates ).
>
> The related discussion is here (
> https://inbox.sourceware.org/gdb/20140814083231.GA6283@blade.nx/T/#u ).
>
> Looking at recent commits, this is done by a few people, but not everybody.
>
> [ FWIW, I'm using a push script (see below) that takes care of this for
> me. ]
>
> If not too many people actually do this, and nobody's complaining about
> it, should we drop the requirement?
My vote is to drop the requirement. With all the possible cases which
Git supports of getting a commit into the upstream repository, I don't
think we can guarantee monotonous dates anyway.
However, I push commits only rarely, so my opinion's weight is
probably not too high.
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Fixing commit dates before pushing
2026-05-12 11:57 ` Eli Zaretskii via Gdb
@ 2026-05-12 14:58 ` Arsen Arsenović via Gdb
0 siblings, 0 replies; 8+ messages in thread
From: Arsen Arsenović via Gdb @ 2026-05-12 14:58 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: Tom de Vries, gdb
[-- Attachment #1: Type: text/plain, Size: 1302 bytes --]
Eli Zaretskii <eliz@gnu.org> writes:
> My vote is to drop the requirement. With all the possible cases which
> Git supports of getting a commit into the upstream repository, I don't
> think we can guarantee monotonous dates anyway.
On top of that, Git already provides monotonous dates (assuming no
deliberate effort to make them non-monotonous) on commits in the
'CommitDate' field. (Parts of) Git already assume(s) such a monotonous
timestamps:
--committer-date-is-author-date
Instead of using the current time as the committer date, use
the author date of the commit being rebased as the committer
date. This option implies --force-rebase.
Warning
The history walking machinery assumes that commits have
non-decreasing commit timestamps. You should consider if
you really need to use this option. Then you should only
use this option to override the committer date when
rebasing commits on top of a base which commit is older
(in terms of the commit date) than the oldest commit you
are applying (in terms of the author date).
-- git-rebase(1)
See also 'git log --format=fuller'.
--
Arsen Arsenović
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 418 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fixing commit dates before pushing
2026-05-12 8:19 Fixing commit dates before pushing Tom de Vries via Gdb
2026-05-12 11:57 ` Eli Zaretskii via Gdb
@ 2026-05-12 14:15 ` Simon Marchi via Gdb
2026-05-12 17:46 ` Guinevere Larsen via Gdb
2026-05-14 19:29 ` Tom Tromey
2026-05-15 14:49 ` Andrew Burgess via Gdb
2026-05-26 11:37 ` Tom de Vries via Gdb
3 siblings, 2 replies; 8+ messages in thread
From: Simon Marchi via Gdb @ 2026-05-12 14:15 UTC (permalink / raw)
To: Tom de Vries, gdb
On 5/12/26 4:19 AM, Tom de Vries via Gdb wrote:
> Hi,
>
> back in 2014, a requirement was added to the contribution checklist: fixing commit dates ( https://sourceware.org/gdb/wiki/ContributionChecklist#Fixing_commit_dates ).
>
> The related discussion is here ( https://inbox.sourceware.org/gdb/20140814083231.GA6283@blade.nx/T/#u ).
>
> Looking at recent commits, this is done by a few people, but not everybody.
>
> [ FWIW, I'm using a push script (see below) that takes care of this for me. ]
>
> If not too many people actually do this, and nobody's complaining about it, should we drop the requirement?
I must admit that I have never done this myself, so I am not very
attached to this rule.
Simon
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fixing commit dates before pushing
2026-05-12 14:15 ` Simon Marchi via Gdb
@ 2026-05-12 17:46 ` Guinevere Larsen via Gdb
2026-05-14 19:29 ` Tom Tromey
1 sibling, 0 replies; 8+ messages in thread
From: Guinevere Larsen via Gdb @ 2026-05-12 17:46 UTC (permalink / raw)
To: Simon Marchi, Tom de Vries, gdb
On 5/12/26 11:15 AM, Simon Marchi via Gdb wrote:
> On 5/12/26 4:19 AM, Tom de Vries via Gdb wrote:
>> Hi,
>>
>> back in 2014, a requirement was added to the contribution checklist: fixing commit dates ( https://sourceware.org/gdb/wiki/ContributionChecklist#Fixing_commit_dates ).
>>
>> The related discussion is here ( https://inbox.sourceware.org/gdb/20140814083231.GA6283@blade.nx/T/#u ).
>>
>> Looking at recent commits, this is done by a few people, but not everybody.
>>
>> [ FWIW, I'm using a push script (see below) that takes care of this for me. ]
>>
>> If not too many people actually do this, and nobody's complaining about it, should we drop the requirement?
> I must admit that I have never done this myself, so I am not very
> attached to this rule.
>
> Simon
>
I did see that in the contributor checklist, but since the history log
already had dates that were out of order, I never bothered with doing
it. I can start if we think it is important, but for whatever my vote is
worth, I think we can drop it...
--
Cheers,
Guinevere Larsen
It/she
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fixing commit dates before pushing
2026-05-12 14:15 ` Simon Marchi via Gdb
2026-05-12 17:46 ` Guinevere Larsen via Gdb
@ 2026-05-14 19:29 ` Tom Tromey
1 sibling, 0 replies; 8+ messages in thread
From: Tom Tromey @ 2026-05-14 19:29 UTC (permalink / raw)
To: Simon Marchi via Gdb; +Cc: Tom de Vries, Simon Marchi
>>>>> "Simon" == Simon Marchi via Gdb <gdb@sourceware.org> writes:
Simon> I must admit that I have never done this myself, so I am not very
Simon> attached to this rule.
I haven't done it either. I am not sure I ever even knew about it.
It seems like a mild pain to do and there doesn't seem to be a real
benefit. So let's just drop this.
Tom
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fixing commit dates before pushing
2026-05-12 8:19 Fixing commit dates before pushing Tom de Vries via Gdb
2026-05-12 11:57 ` Eli Zaretskii via Gdb
2026-05-12 14:15 ` Simon Marchi via Gdb
@ 2026-05-15 14:49 ` Andrew Burgess via Gdb
2026-05-26 11:37 ` Tom de Vries via Gdb
3 siblings, 0 replies; 8+ messages in thread
From: Andrew Burgess via Gdb @ 2026-05-15 14:49 UTC (permalink / raw)
To: Tom de Vries, gdb
Tom de Vries via Gdb <gdb@sourceware.org> writes:
> Hi,
>
> back in 2014, a requirement was added to the contribution checklist:
> fixing commit dates (
> https://sourceware.org/gdb/wiki/ContributionChecklist#Fixing_commit_dates ).
>
> The related discussion is here (
> https://inbox.sourceware.org/gdb/20140814083231.GA6283@blade.nx/T/#u ).
>
> Looking at recent commits, this is done by a few people, but not everybody.
>
> [ FWIW, I'm using a push script (see below) that takes care of this for
> me. ]
>
> If not too many people actually do this, and nobody's complaining about
> it, should we drop the requirement?
As some others have said, I have never done this myself, so I'm +1 for
dropping the rule.
Thanks,
Andrew
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Fixing commit dates before pushing
2026-05-12 8:19 Fixing commit dates before pushing Tom de Vries via Gdb
` (2 preceding siblings ...)
2026-05-15 14:49 ` Andrew Burgess via Gdb
@ 2026-05-26 11:37 ` Tom de Vries via Gdb
3 siblings, 0 replies; 8+ messages in thread
From: Tom de Vries via Gdb @ 2026-05-26 11:37 UTC (permalink / raw)
To: gdb
Thanks all for the feedback.
I've received 6 votes to drop this, and 0 votes to keep this.
I've tagged the item with "optional" in the contribution checklist.
Thanks,
- Tom
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2026-05-26 11:37 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-12 8:19 Fixing commit dates before pushing Tom de Vries via Gdb
2026-05-12 11:57 ` Eli Zaretskii via Gdb
2026-05-12 14:58 ` Arsen Arsenović via Gdb
2026-05-12 14:15 ` Simon Marchi via Gdb
2026-05-12 17:46 ` Guinevere Larsen via Gdb
2026-05-14 19:29 ` Tom Tromey
2026-05-15 14:49 ` Andrew Burgess via Gdb
2026-05-26 11:37 ` Tom de Vries via Gdb
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox