We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 405ae83 commit d89468dCopy full SHA for d89468d
deadgrep.el
@@ -763,7 +763,13 @@ to obtain ripgrep results."
763
764
(unless deadgrep--skip-if-hidden
765
(push "--hidden" args))
766
- (unless deadgrep--skip-if-vcs-ignore
+ (if deadgrep--skip-if-vcs-ignore
767
+ ;; By default, ripgrep searches .git even when it's respecting
768
+ ;; .gitignore, if --hidden is set. Ignore .git when we're
769
+ ;; using .gitignore.
770
+ ;;
771
+ ;; https://github.com/BurntSushi/ripgrep/issues/713
772
+ (push "--glob=!/.git" args)
773
(push "--no-ignore-vcs" args))
774
775
(push "--" args)
0 commit comments