From c5b1b48f09bb9af60aef5d48191b284d4b281a34 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Fri, 18 Jun 2021 12:02:12 +0200 Subject: lint: check-patch-headers: Recognize Git diffs. * guix/lint.scm (check-patch-headers): Add "diff --git " prefix. --- guix/lint.scm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/guix/lint.scm b/guix/lint.scm index 8115f2aa50..d65d5ce8f9 100644 --- a/guix/lint.scm +++ b/guix/lint.scm @@ -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") -- cgit 1.4.1