On Wed, Feb 25, 2026 at 10:45:48PM +0100, Alejandro Colomar wrote:
I appreciate seeing the date in my Fixes tags elsewhere, as it avoids
looking up some commits, which I would look up if I hadn't seen the
date.
If it's something that is helpful for you, just add a git alias?
$ cat ~/git-fixes-date-filter
#!/usr/bin/perl
# Save as e.g. ~/bin/git-fixes-date-filter
while (<STDIN>) {
if (/^(\s*Fixes:\s+)([0-9a-f]+)\s+\("(.*)"\)/) {
my ($prefix, $sha, $desc) = ($1, $2, $3);
chomp(my $date = `git log -1 --format=%as $sha 2>/dev/null`);
if ($date) {
print "$prefix$sha ($date,\"$desc\")\n";
next;
}
}
print;
}
Add to .gitconfig:
[alias]
lg = "!git log \"$@\" | ~/git-fixes-date-filter | less -R #"
And then "git lg" will do exactly what you're asking for:
$ git lg -1 origin/master | grep Fixes
Fixes: cc1e127bfa95 (2022-05-09,"random: remove ratelimiting for in-kernel
unseeded randomness")
--
Thanks,
Sasha