Improve projectile-git-command

When indexing it ignores hidden files, which is especially annoying for
dotfiles where everything starts with a dot. If you just have -H it'll
index .git too though, so we exclude that
This commit is contained in:
Aria Edmonds
2019-01-18 19:40:09 +11:00
parent aaee04e257
commit 81e8fafa18

View File

@ -59,7 +59,7 @@
;; If fd exists, use it for git and generic projects ;; If fd exists, use it for git and generic projects
;; fd is a rust program that is significantly faster. It also respects ;; fd is a rust program that is significantly faster. It also respects
;; .gitignore. This is recommended in the projectile docs ;; .gitignore. This is recommended in the projectile docs
(when (executable-find "fd") (when (executable-find "fd")
(setq projectile-git-command "fd . --type f -0 -H -E .git" (setq projectile-git-command "fd . --type f -0 -H -E .git"
projectile-generic-command projectile-git-command))) projectile-generic-command projectile-git-command)))