Skip to content

Commit 4208970

Browse files
DvdGiessendpgeorge
authored andcommitted
tools/verifygitlog.py: Allow long co-author and sign-off names.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl>
1 parent 51b821c commit 4208970

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/verifygitlog.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,12 @@ def verify_message_body(raw_body, err):
105105

106106
# Message body lines.
107107
for line in raw_body[2:]:
108-
# Long lines with URLs are exempt from the line length rule.
109-
if len(line) >= 76 and "://" not in line:
108+
# Long lines with URLs or human names are exempt from the line length rule.
109+
if len(line) >= 76 and not (
110+
"://" in line
111+
or line.startswith("Co-authored-by: ")
112+
or line.startswith("Signed-off-by: ")
113+
):
110114
err.error("Message lines should be 75 or less characters: " + line)
111115

112116
if not raw_body[-1].startswith("Signed-off-by: ") or "@" not in raw_body[-1]:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy