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 @@ (define (patch-header-warnings patch)
((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")