Re: linux-next: Fixes tag needs some work in the tip tree
From: David Sterba
Date: Thu Aug 20 2020 - 05:23:32 EST
On Thu, Aug 20, 2020 at 07:15:02PM +1000, Stephen Rothwell wrote:
> On Thu, 20 Aug 2020 10:21:49 +0200 Borislav Petkov <bp@xxxxxxx> wrote:
> >
> > On Thu, Aug 20, 2020 at 04:12:39PM +1000, Stephen Rothwell wrote:
> > >
> > > Fixes tag
> > >
> > > Fixes: 9554bfe403nd ("x86/mce: Convert the CEC to use the MCE notifier")
> >
> > Hmm, this came from the original patch submission:
> >
> > https://lkml.kernel.org/r/20200805095708.83939-1-luca.stefani.ge1@xxxxxxxxx
> >
> > the 'n' is already there.
>
> yeah, I wish people would just generate these lines:
>
> git log -1 --format='Fixes: %h ("%s")' <commit-id>
FWIW, I'm using a script 'git-fixesline' that git also understands as a
subcommand 'git fixesline' with:
git --no-pager show -s --abbrev-commit --abbrev=12 --pretty=format:"Fixes: %h (\"%s\")%n" "$@"
(Dunno why not an alias but it works the same way.)