mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
git: 'commit-difference' really excludes the ancestors of #:excluded.
* guix/git.scm (commit-difference): Initialize VISITED to the closure of
OLD and EXCLUDED, as written in the docstring.
* tests/git.scm ("commit-difference, excluded commits"): Adjust
accordingly.
This commit is contained in:
@@ -119,8 +119,7 @@
|
||||
(list commit3 commit4))
|
||||
(lset= eq? (commit-difference commit4 commit1 (list commit3))
|
||||
(list commit4))
|
||||
(lset= eq? (commit-difference commit4 commit1 (list commit5))
|
||||
(list commit2 commit3 commit4)))))))
|
||||
(null? (commit-difference commit4 commit1 (list commit5))))))))
|
||||
|
||||
(unless (which (git-command)) (test-skip 1))
|
||||
(test-equal "commit-relation"
|
||||
|
||||
Reference in New Issue
Block a user