[edk2-devel] [PATCH v2] BaseTools/PatchCheck.py: Ignore CR and LF characters in subject length

Philippe Mathieu-Daudé philmd at redhat.com
Mon Jan 20 09:11:04 UTC 2020


Hi Liming,

On 1/9/20 6:35 AM, Feng, Bob C wrote:
> Reviewed-by: Bob Feng <bob.c.feng at intel.com>

Is the Review-by tag from Bob enough to get this patch merged?

Thanks,

Phil.

> 
> -----Original Message-----
> From: devel at edk2.groups.io [mailto:devel at edk2.groups.io] On Behalf Of Philippe Mathieu-Daudé
> Sent: Thursday, January 2, 2020 8:17 PM
> To: devel at edk2.groups.io
> Cc: Philippe Mathieu-Daude <philmd at redhat.com>; Gao, Liming <liming.gao at intel.com>; Justen, Jordan L <jordan.l.justen at intel.com>; Zhu, Yonghong <yonghong.zhu at intel.com>; Gao, Zhichao <zhichao.gao at intel.com>
> Subject: [edk2-devel] [PATCH v2] BaseTools/PatchCheck.py: Ignore CR and LF characters in subject length
> 
> REF: https://bugzilla.tianocore.org/show_bug.cgi?id=113
> 
> Strip the trailing characters before checking the subject line is less than 72 characters.
> 
> Fixes: e61406708c83f
> Cc: Liming Gao <liming.gao at intel.com>
> Cc: Jordan Justen <jordan.l.justen at intel.com>
> Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
> Signed-off-by: Philippe Mathieu-Daude <philmd at redhat.com>
> ---
> Cc: Yonghong Zhu <yonghong.zhu at intel.com>
> Cc: Zhichao Gao <zhichao.gao at intel.com>
> v2: Use rstrip() (Jordan Justen)
> v1: https://edk2.groups.io/g/devel/message/52425
> ---
>   BaseTools/Scripts/PatchCheck.py | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/BaseTools/Scripts/PatchCheck.py b/BaseTools/Scripts/PatchCheck.py index 2a4e6f603e79..9668025798da 100755
> --- a/BaseTools/Scripts/PatchCheck.py
> +++ b/BaseTools/Scripts/PatchCheck.py
> @@ -196,7 +196,7 @@ class CommitMessageCheck:
>               self.error('Empty commit message!')
>               return
>   
> -        if count >= 1 and len(lines[0]) >= 72:
> +        if count >= 1 and len(lines[0].rstrip()) >= 72:
>               self.error('First line of commit message (subject line) ' +
>                          'is too long.')
>   
> --
> 2.21.0
> 
> 
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#53396): https://edk2.groups.io/g/devel/message/53396
Mute This Topic: https://groups.io/mt/69378760/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list