me
/
guix
Archived
1
0
Fork 0

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.
master
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
1 changed files with 2 additions and 2 deletions

View File

@ -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)