From 59fe30a3a860212ede0cd3c97e58a5f6bca8b65b Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 5 Oct 2020 22:22:11 +0200 Subject: 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(-) (limited to 'etc/committer.scm.in') diff --git a/etc/committer.scm.in b/etc/committer.scm.in index 2f247835f3..ebe6b96bcc 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) -- cgit v1.2.3