Fix #4180: omit .git from file searches
This commit is contained in:
parent
427d38008b
commit
51744ce294
2 changed files with 3 additions and 3 deletions
|
@ -57,7 +57,7 @@ workspace."
|
||||||
(helm-rg-default-extra-args
|
(helm-rg-default-extra-args
|
||||||
(delq nil (append (list (when all-files "-z -uu")
|
(delq nil (append (list (when all-files "-z -uu")
|
||||||
(unless recursive "--maxdepth 1")
|
(unless recursive "--maxdepth 1")
|
||||||
"--hidden")
|
"--hidden" "-g" "!.git")
|
||||||
args))))
|
args))))
|
||||||
(setq deactivate-mark t)
|
(setq deactivate-mark t)
|
||||||
(helm-rg (or query
|
(helm-rg (or query
|
||||||
|
|
|
@ -272,8 +272,8 @@ The point of this is to avoid Emacs locking up indexing massive file trees."
|
||||||
(directory (or in project-root))
|
(directory (or in project-root))
|
||||||
(args (concat (if all-files " -uu")
|
(args (concat (if all-files " -uu")
|
||||||
(unless recursive " --maxdepth 1")
|
(unless recursive " --maxdepth 1")
|
||||||
" --hidden"
|
" --hidden -g!.git "
|
||||||
" " (mapconcat #'shell-quote-argument args " "))))
|
(mapconcat #'shell-quote-argument args " "))))
|
||||||
(setq deactivate-mark t)
|
(setq deactivate-mark t)
|
||||||
(counsel-rg
|
(counsel-rg
|
||||||
(or query
|
(or query
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue