We can also add fixline to git to get the formatted output i.e.

vpp$ git fixline 3effb4e6

Fixes: 3effb4e63068 ("memif: integrate with new tx infra")

One can add the following to .gitconfig file: fixline = log -1 --abbrev=12 
--format='Fixes: %h (\"%s\")'

-br
Mohsin

From: <[email protected]> on behalf of "Damjan Marion via lists.fd.io" 
<[email protected]>
Reply-To: "[email protected]" <[email protected]>
Date: Tuesday, November 2, 2021 at 5:44 PM
To: "Steven Luong (sluong)" <[email protected]>
Cc: "[email protected]" <[email protected]>
Subject: Re: [vpp-dev] Please include Fixes: tag for regression fix


We should probably extend checkstyle to reject patch if there is “Type: fix” 
and there is no “Fixes: *”.
We can have special case “Fixes: unknown” to willingly bypass this check….

—
Damjan



> On 02.11.2021., at 18:17, steven luong via lists.fd.io 
> <[email protected]> wrote:
>
> Folks,
>
> In case you don’t already know, there is a tag called Fixes in the commit 
> message which allows one to specify if the current patch fixes a regression. 
> See an example usage in https://gerrit.fd.io/r/c/vpp/+/34212
>
> When you commit a patch which fixes a known regression, please make use of 
> the Fixes tag to benefit every consumer.
>
> Steven
>
>
>


-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#20411): https://lists.fd.io/g/vpp-dev/message/20411
Mute This Topic: https://lists.fd.io/mt/86771694/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to