Re: [PATCH] Add short author date to Fixes tag

Alejandro Colomar <[email protected]> Thu, 26 Feb 2026 01:20:26 +0100
Newsgroups dev.linux.lists.tech-board-discuss,org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.workflows
Message-ID <aZ-NVcaidg58qXEu@devuan>
--zubq56rjnllg3g3p
Content-Type: text/plain; protected-headers=v1; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
From: Alejandro Colomar <[email protected]>
To: Greg Kroah-Hartman <[email protected]>
Cc: Steven Rostedt <[email protected]>, Mark Brown <[email protected]>, 
	Sasha Levin <[email protected]>, Geert Uytterhoeven <[email protected]>, 
	Jacob Keller <[email protected]>, [email protected], [email protected], 
	Jonathan Corbet <[email protected]>, Theodore Ts'o <[email protected]>, 
	Andy Whitcroft <[email protected]>, Joe Perches <[email protected]>, 
	Dwaipayan Ray <[email protected]>, Lukas Bulwahn <[email protected]>, 
	Andrew Morton <[email protected]>, [email protected], [email protected], 
	[email protected], [email protected], Andrew Lunn <[email protected]>
Subject: Re: [PATCH] Add short author date to Fixes tag
Message-ID: <aZ-NVcaidg58qXEu@devuan>
References: <aZ4_sBIy8rOUL59Q@devuan>
 <2026022531-tightness-rare-6a14@gregkh>
 <aZ87Z24f9HZsofGl@devuan>
 <2026022539-commotion-huskiness-8736@gregkh>
 <aZ9p2RMrJL1mQ10w@devuan>
 <2026022547-confirm-upturned-a736@gregkh>
MIME-Version: 1.0
In-Reply-To: <2026022547-confirm-upturned-a736@gregkh>

Hi Greg,

On 2026-02-25T15:46:28-0800, Greg Kroah-Hartman wrote:
[...]
> > Secondarily, it helps with the ID, in case it becomes ambiguous.  But
> > I started using it for the human part of it.
>=20
> Our ids are not ambiguous.  Our "problem" is people putting git ids in
> the logs that are not valid git ids.  Just happened again today as we
> are "human".  Putting the date in there would not help with that very
> real problem we have today at all.

It would help locate the commit it refers to.  If you have a commit
date, you know that if it was rebased, the date can only increase.  So,
instead of having to search exclusively by subject, you can limit your
search to dates no older than the date from the Fixes tag.

Let's say we want to locate

	bogus-hash (2025-11-21; "bug: Add BUG_FORMAT_ARGS infrastructure")

We can first of all check if maybe there's a typo in the hash (maybe
the first character is missing, due to a cut/paste accident).

	$ git log --oneline --before 2025-11-22 --after 2025-11-20 \
	| grep BUG_FORMAT_ARGS;
	5c47b7f3d1a9 bug: Add BUG_FORMAT_ARGS infrastructure

But even if the date was wrong.  Let's say someone used a reference to
a commit that got rebased a year later, as the case you stated.

	old-hash (2025-01-21; "bug: Add BUG_FORMAT_ARGS infrastructure")

We can search by date something that looks similar.  We know the date
can't be older than that, if it wasrebased.

	$ git log --oneline --after 2025-11-20 | grep infrastructure
	cb2dc6d2869a can: Kconfig: select CAN driver infrastructure by default
	93d7a7ed0734 netfilter: flowtable: move path discovery infrastructure to i=
ts own file
	23343b6b09ac sched/mmcid: Introduce per task/CPU ownership infrastructure
	775465fd26a3 lib/test_hmm: add zone device private THP test infrastructure
	99e4e1028337 RDMA/bng_re: Add basic debugfs infrastructure
	4f830cd8d7fe RDMA/bng_re: Add infrastructure for enabling Firmware channel
	5c47b7f3d1a9 bug: Add BUG_FORMAT_ARGS infrastructure
	d292dbb5640c bug: Add BUG_FORMAT infrastructure

So, we'd start looking at the tail of that list (assuming the rebase was
close to the commit date), and depart from that as necessary.  In this
case, we find it as the second commit.

On the other hand, if you have no date, you must look at the entire
git-log(1), which is a lot more work.

> thanks,
>=20
> greg k-h

Have a lovely night!
Alex

--=20
<https://www.alejandro-colomar.es>

--zubq56rjnllg3g3p
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEES7Jt9u9GbmlWADAi64mZXMKQwqkFAmmfkb4ACgkQ64mZXMKQ
wqkHcw//b0sPsO3GJVOzCienU9HT8eFzJL6b2B0uwuium6S0m5HcmtXYdQ2YIDIv
b5c6ykDVOcbSzWN9aFraxFLu0oUKxr70jFb1W0YmMbJbXF0frzrmTAkjyr+kaFXh
WBW+AUcPYbiywxBiT37p8bNut2giQGcx2N0rwwiFMqP+NTNAsxww/0rJDWVJVQim
hOhTFGnHxHQJvgGJQOpnfFmB0HPRiYGR/Hze2n10fjjCEUh0k4fkzznhTeY1tsgN
kTZVePf7ZERMAXeHE2WKMXqMgFEdxBNRTkYtmZxUHv7FcJtp9OIs2aDhOwwe+vAh
NkXNuuNZzETsakhW5tswt5HPbt9DescVN7uU1VLAUQw268dRuuxeRBUPb0AJERYr
SNGUH5QnWcXOE247iSXCdkBcyEO72txtb3iFmEK1ydgZFhaKGWH0eKP2GE7GGKAV
O669xQsf6GXHJqoUlO3CH3sHjnKpMU9G0TdKRNrV3KYdZW5qG3v2ZK/xle8V6gjy
woZDITVtsBZ7BGKWlGXlFJ720OnfnZ5dV54RPjPdCAE2PPovxznITko9Q00ih9b+
K2a5eDJJLFqmFSXWL0WYfi2eyJCtmUkMKxIo2CRDcnZ/Gza8JuHoSwry4kh8D+5L
9jQe7Pv5xuAVTWOITDVdmbK+5K5yatbB9pApo0nNi7OxhmltNrg=
=qO8H
-----END PGP SIGNATURE-----

--zubq56rjnllg3g3p--