lint: check-patch-headers: Recognize Git diffs.

* guix/lint.scm (check-patch-headers): Add "diff --git " prefix.
This commit is contained in:
Ludovic Courtès 2021-06-18 12:02:12 +02:00
parent 003728cfab
commit c5b1b48f09
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5

View File

@ -801,7 +801,8 @@ warnings."
((blank? line)
(loop))
((or (string-prefix? "--- " line)
(string-prefix? "+++ " line))
(string-prefix? "+++ " line)
(string-prefix? "diff --git " line))
(list (make-warning package
(G_ "~a: patch lacks comment and \
upstream status")