guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

44/89: etc: committer: Use EQUAL? instead of EQ? for differences.


From: guix-commits
Subject: 44/89: etc: committer: Use EQUAL? instead of EQ? for differences.
Date: Mon, 5 Oct 2020 18:34:55 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 59fe30a3a860212ede0cd3c97e58a5f6bca8b65b
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Mon Oct 5 22:22:11 2020 +0200

    etc: committer: Use EQUAL? instead of EQ? for differences.
    
    * etc/committer.scm.in (commit-message): Use EQUAL? instead of EQ? to 
compute
    differences because not all inputs may be symbols; some could be 
expressions.
---
 etc/committer.scm.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/etc/committer.scm.in b/etc/committer.scm.in
index 2f24783..ebe6b96 100755
--- a/etc/committer.scm.in
+++ b/etc/committer.scm.in
@@ -175,8 +175,8 @@ corresponding to the top-level definition containing the 
staged changes."
               (let ((old-values (get-values old field))
                     (new-values (get-values new field)))
                 (or (equal? old-values new-values)
-                    (let ((removed (lset-difference eq? old-values new-values))
-                          (added (lset-difference eq? new-values old-values)))
+                    (let ((removed (lset-difference equal? old-values 
new-values))
+                          (added (lset-difference equal? new-values 
old-values)))
                       (format port
                               "[~a]: ~a~%" field
                               (match (list (map symbol->string removed)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]