workflows.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jacob Keller <jacob.e.keller@intel.com>
To: Steven Rostedt <rostedt@goodmis.org>, Alejandro Colomar <alx@kernel.org>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Mark Brown <broonie@kernel.org>, Sasha Levin <sashal@kernel.org>,
	Geert Uytterhoeven <geert@linux-m68k.org>, <Yeking@red54.com>,
	<kuba@kernel.org>, "Jonathan Corbet" <corbet@lwn.net>,
	Theodore Ts'o <tytso@mit.edu>, Andy Whitcroft <apw@canonical.com>,
	Joe Perches <joe@perches.com>,
	Dwaipayan Ray <dwaipayanray1@gmail.com>,
	Lukas Bulwahn <lukas.bulwahn@gmail.com>,
	"Andrew Morton" <akpm@linux-foundation.org>,
	<workflows@vger.kernel.org>, <linux-doc@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>,
	<tech-board-discuss@lists.linux.dev>,
	Andrew Lunn <andrew@lunn.ch>
Subject: Re: [PATCH] Add short author date to Fixes tag
Date: Thu, 26 Feb 2026 15:24:21 -0800	[thread overview]
Message-ID: <429ce5f4-9734-4226-85e2-6b0c13dcaaa8@intel.com> (raw)
In-Reply-To: <20260225190630.1834f850@fedora>



On 2/25/2026 4:08 PM, Steven Rostedt wrote:
> On Wed, 25 Feb 2026 01:56:02 +0100
> Alejandro Colomar <alx@kernel.org> wrote:
> 
>> That uses hash+subject.  This may be not enough in some cases (see how
>> much subjects repeat, in the logs above).  And importantly, a fixes tag
> 
> Most of those repeats are merges. And people tend to use the same
> subject when they merge commits. The only time a Fixes is for a merge
> is if there was a merge conflict and it was done poorly.
> 
>> may become ambiguous *after* it has been written, so you can't predict
>> much.
>>
>> By having a commit date in the Fixes tag, you could even simplify the
>> script to just do a binary search in case of ambiguity.  Let's say I
>> want to find the following commit (arbitrarily taken from the first
>> Fixes tag I've found in my copy of linux.git):
>>
>> 	a2e459555c5f (2023-08-09; "shmem: stable directory offsets")
>>
>> We could find it, with a trivial command line.  We only even need two
>> characters of the hash:
>>
>> 	$ git log --oneline --after='2023-08-08' --before='2023-08-10' \
>> 	| grep ^a2;
>> 	a2e459555c5f shmem: stable directory offsets
> 
> Why not just git show a2e459555c5f? You're just worried because of
> conflicts? That happens so seldom doing a bit more work to find the
> task is less work than every developer adding a useless date in the tag.
> 
> Even if there are conflicts, git show shows you all the commits that conflict:
> 
>    (random example)
> 
> $ git show cbced
> error: short object ID cbced is ambiguous
> hint: The candidates are:
> hint:   cbced93894d1 commit 2026-02-02 - drm/amd/display: Set CRTC source for DAC using registers
> hint:   cbced0de1ae7 tree
> hint:   cbced35df940 tree
> hint:   cbced38b00f6 tree
> hint:   cbced53122ce tree
> hint:   cbced7856638 tree
> hint:   cbced88f5140 tree
> hint:   cbceda69074d tree
> hint:   cbcedadcc0f9 tree
> hint:   cbced8ff29d4 blob
> hint:   cbcedd7a684b blob
> 
> The above only has one with a subject.
> 
>>
>> No need for a huge script to disambiguate.  This is even typo-resistant,
>> as one could eventually find something that is similar enough, if one
>> had such a field with a typo (in any of the three fields).  You'd be
>> able to search by the other two fields, and two fields should be
>> _usually_ enough for disambiguating, and the third one could corroborate
>> the typo.
>>
>> So, what would you think of having the commit date in commit references
>> such as Fixes tags?
> 
> NAK. I really see no purpose for it, and just adds added noise to the
> Fixes tag. Seriously, your example above:
> 
>   	a2e459555c5f (2023-08-09; "shmem: stable directory offsets")
> 
> Looks horrible compared to:
> 
>   	a2e459555c5f ("shmem: stable directory offsets")
> 
> You are the first one to complain about needing a date here. Who else
> finds this useful in the kernel community? It really feels like it's a
> solution looking for a problem.
> 

Strictly speaking, I've asked about inserting the data before because 
this form:

   a2e459555c5f ("shmem: stable directory offsets", 2023-08-09)

is fairly common within the git development community, but I think that 
community has significantly less tooling around parsing the contents.

The arguments laid out here are pretty compelling that this has no value 
to the Kernel community. If you are worried about disambiguation, adding 
more characters to the hash is preferable (at one point 7 or 8 
characters was sufficient to provide uniqueness, but now we use 12 
characters).

Despite my original comments about liking the format with date, I also 
concur with everyone here that it doesn't make sense to change the 
format. I just modified my global alias and set one different for the 
git projects vs the Linux kernel project. That way my aliases 
(git-whatis and git-fixes) will generate the appropriate format for the 
given project.

Thanks,
Jake

> Sorry,
> 
> -- Steve
> 


  reply	other threads:[~2026-02-26 23:24 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-25  0:56 Alejandro Colomar
2026-02-25  0:57 ` Alejandro Colomar
2026-02-25 18:00 ` Greg Kroah-Hartman
2026-02-25 18:20   ` Alejandro Colomar
2026-02-25 19:47     ` James Bottomley
2026-02-25 21:23     ` Greg Kroah-Hartman
2026-02-25 21:45       ` Alejandro Colomar
2026-02-25 22:35         ` Theodore Tso
2026-02-25 23:27         ` Sasha Levin
2026-02-25 23:46         ` Greg Kroah-Hartman
2026-02-26  0:20           ` Alejandro Colomar
2026-02-26  7:50     ` Geert Uytterhoeven
2026-02-25 20:08 ` Sasha Levin
2026-02-26  0:08 ` Steven Rostedt
2026-02-26 23:24   ` Jacob Keller [this message]
     [not found] <tencent_6CF6E720909156A227D23AE8CFE4F9BA5D05@qq.com>
2025-01-10 12:20 ` Yeking
2025-01-10 12:32   ` Greg Kroah-Hartman
2025-01-10 13:03   ` Steven Rostedt
2025-01-11  0:21     ` Jacob Keller
2025-01-11  5:48       ` Greg Kroah-Hartman
2025-01-11 17:09       ` Steven Rostedt
2025-01-12 10:54         ` Geert Uytterhoeven
2025-01-13 14:51           ` Steven Rostedt
2025-01-13 15:08             ` Mark Brown

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=429ce5f4-9734-4226-85e2-6b0c13dcaaa8@intel.com \
    --to=jacob.e.keller@intel.com \
    --cc=Yeking@red54.com \
    --cc=akpm@linux-foundation.org \
    --cc=alx@kernel.org \
    --cc=andrew@lunn.ch \
    --cc=apw@canonical.com \
    --cc=broonie@kernel.org \
    --cc=corbet@lwn.net \
    --cc=dwaipayanray1@gmail.com \
    --cc=geert@linux-m68k.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=joe@perches.com \
    --cc=kuba@kernel.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukas.bulwahn@gmail.com \
    --cc=rostedt@goodmis.org \
    --cc=sashal@kernel.org \
    --cc=tech-board-discuss@lists.linux.dev \
    --cc=tytso@mit.edu \
    --cc=workflows@vger.kernel.org \
    /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