From: "Arsen Arsenović via Gdb" <gdb@sourceware.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Tom de Vries <tdevries@suse.de>, gdb@sourceware.org
Subject: Re: Fixing commit dates before pushing
Date: Tue, 12 May 2026 16:58:22 +0200 [thread overview]
Message-ID: <864ikcd69d.fsf@aarsen.me> (raw)
In-Reply-To: <86v7cszvpa.fsf@gnu.org>
[-- 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 --]
next prev parent reply other threads:[~2026-05-12 14:59 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 8:19 Tom de Vries via Gdb
2026-05-12 11:57 ` Eli Zaretskii via Gdb
2026-05-12 14:58 ` Arsen Arsenović via Gdb [this message]
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
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=864ikcd69d.fsf@aarsen.me \
--to=gdb@sourceware.org \
--cc=arsen@aarsen.me \
--cc=eliz@gnu.org \
--cc=tdevries@suse.de \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox