Use 'project--value-in-dir' for 'project-vc-include-untracked' too
* lisp/progmodes/project.el (project--vc-list-files): Use 'project--value-in-dir' for 'project-vc-include-untracked' too. So that is can be reliably set through dir-locals.
This commit is contained in:
parent
594267395d
commit
33a8415eb7
1 changed files with 15 additions and 9 deletions
|
@ -609,13 +609,16 @@ project backend implementation of `project-external-roots'.")
|
||||||
(defvar vc-git-use-literal-pathspecs)
|
(defvar vc-git-use-literal-pathspecs)
|
||||||
(pcase backend
|
(pcase backend
|
||||||
(`Git
|
(`Git
|
||||||
(let ((default-directory (expand-file-name (file-name-as-directory dir)))
|
(let* ((default-directory (expand-file-name (file-name-as-directory dir)))
|
||||||
(args '("-z"))
|
(args '("-z"))
|
||||||
(vc-git-use-literal-pathspecs nil)
|
(vc-git-use-literal-pathspecs nil)
|
||||||
|
(include-untracked (project--value-in-dir
|
||||||
|
'project-vc-include-untracked
|
||||||
|
dir))
|
||||||
files)
|
files)
|
||||||
(setq args (append args
|
(setq args (append args
|
||||||
'("-c" "--exclude-standard")
|
'("-c" "--exclude-standard")
|
||||||
(and project-vc-include-untracked '("-o"))))
|
(and include-untracked '("-o"))))
|
||||||
(when extra-ignores
|
(when extra-ignores
|
||||||
(setq args (append args
|
(setq args (append args
|
||||||
(cons "--"
|
(cons "--"
|
||||||
|
@ -666,8 +669,11 @@ project backend implementation of `project-external-roots'.")
|
||||||
;; XXX: Better solutions welcome, but this seems cheap enough.
|
;; XXX: Better solutions welcome, but this seems cheap enough.
|
||||||
(delete-consecutive-dups files)))
|
(delete-consecutive-dups files)))
|
||||||
(`Hg
|
(`Hg
|
||||||
(let ((default-directory (expand-file-name (file-name-as-directory dir)))
|
(let* ((default-directory (expand-file-name (file-name-as-directory dir)))
|
||||||
(args (list (concat "-mcard" (and project-vc-include-untracked "u"))
|
(include-untracked (project--value-in-dir
|
||||||
|
'project-vc-include-untracked
|
||||||
|
dir))
|
||||||
|
(args (list (concat "-mcard" (and include-untracked "u"))
|
||||||
"--no-status"
|
"--no-status"
|
||||||
"-0")))
|
"-0")))
|
||||||
(when extra-ignores
|
(when extra-ignores
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue