Commit 15662b3
checkpatch: add a --strict check for utf-8 in commit logs
Some find using utf-8 in commit logs inappropriate.
Some patch commit logs contain unintended utf-8 characters when doing
things like copy/pasting compilation output.
Look for the start of any commit log by skipping initial lines that look
like email headers and "From: " lines.
Stop looking for utf-8 at the first signature line.
Signed-off-by: Joe Perches <joe@perches.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Andy Whitcroft <apw@shadowen.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent 67d0a07 commit 15662b3
1 file changed
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
240 | 240 | | |
241 | 241 | | |
242 | 242 | | |
243 | | - | |
244 | | - | |
245 | | - | |
| 243 | + | |
| 244 | + | |
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
| |||
251 | 250 | | |
252 | 251 | | |
253 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
254 | 258 | | |
255 | 259 | | |
256 | 260 | | |
| |||
1330 | 1334 | | |
1331 | 1335 | | |
1332 | 1336 | | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
1333 | 1340 | | |
1334 | 1341 | | |
1335 | 1342 | | |
| |||
1497 | 1504 | | |
1498 | 1505 | | |
1499 | 1506 | | |
1500 | | - | |
1501 | 1507 | | |
1502 | 1508 | | |
1503 | 1509 | | |
| |||
1536 | 1542 | | |
1537 | 1543 | | |
1538 | 1544 | | |
| 1545 | + | |
1539 | 1546 | | |
1540 | 1547 | | |
1541 | 1548 | | |
| |||
1613 | 1620 | | |
1614 | 1621 | | |
1615 | 1622 | | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
1616 | 1638 | | |
1617 | 1639 | | |
1618 | 1640 | | |
| |||
0 commit comments