diff options
| author | Kyle Meyer <kyle@kyleam.com> | 2022-01-16 14:08:08 -0500 |
|---|---|---|
| committer | Kyle Meyer <kyle@kyleam.com> | 2022-01-16 14:08:08 -0500 |
| commit | d899f0e7a654182a9ef1e839990194344bc8bbdb (patch) | |
| tree | 0b4b386d8aa517c57a1de212c20c74a45e1570da /lisp/magit-gitignore.el | |
| parent | 9663a644f19810d65570253895fe054f49305646 (diff) | |
Specify :test when calling cl-set-difference with strings
A handful of spots call cl-set-difference with two lists of strings
but leave :test at its default value of eql. As a result, the return
value includes all the items from the first list regardless of which
items are in the second.
Diffstat (limited to 'lisp/magit-gitignore.el')
| -rw-r--r-- | lisp/magit-gitignore.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/magit-gitignore.el b/lisp/magit-gitignore.el index 634c9e2..7ff6469 100644 --- a/lisp/magit-gitignore.el +++ b/lisp/magit-gitignore.el @@ -153,7 +153,8 @@ Rules that are defined in that file affect all local repositories." (magit-with-toplevel (cl-set-difference (magit-list-files) - (magit-skip-worktree-files)))))) + (magit-skip-worktree-files) + :test #'equal))))) (magit-with-toplevel (magit-run-git "update-index" "--skip-worktree" "--" file))) @@ -177,7 +178,8 @@ Rules that are defined in that file affect all local repositories." (magit-with-toplevel (cl-set-difference (magit-list-files) - (magit-assume-unchanged-files)))))) + (magit-assume-unchanged-files) + :test #'equal))))) (magit-with-toplevel (magit-run-git "update-index" "--assume-unchanged" "--" file))) |
