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.
This commit is contained in:
Ricardo Wurmus 2020-10-05 22:22:11 +02:00
parent 112947d1c6
commit 59fe30a3a8
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -175,8 +175,8 @@ (define version
(let ((old-values (get-values old field)) (let ((old-values (get-values old field))
(new-values (get-values new field))) (new-values (get-values new field)))
(or (equal? old-values new-values) (or (equal? old-values new-values)
(let ((removed (lset-difference eq? old-values new-values)) (let ((removed (lset-difference equal? old-values new-values))
(added (lset-difference eq? new-values old-values))) (added (lset-difference equal? new-values old-values)))
(format port (format port
"[~a]: ~a~%" field "[~a]: ~a~%" field
(match (list (map symbol->string removed) (match (list (map symbol->string removed)