branch: externals/urgrep
commit 593d209a312595237b82f74032856b9c7627f4dd
Author: Jim Porter <jporterb...@gmail.com>
Commit: Jim Porter <jporterb...@gmail.com>

    Search in untracked files with git grep
---
 urgrep.el | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/urgrep.el b/urgrep.el
index c78d891a8c..da9a942a7e 100644
--- a/urgrep.el
+++ b/urgrep.el
@@ -282,10 +282,14 @@ See also `grep-process-setup'."
        (list "-G" (urgrep--wildcards-to-regexp x 'pcre)))))
     (git-grep
      (executable-name . "git")
+     ;; XXX: Since we use --no-index, maybe it would make sense to allow using
+     ;; git grep even outside of git repos.  However, that doesn't play nicely
+     ;; with people who want to customize the arguments.
      (vc-backend . "Git")
      (regexp-syntax bre ere pcre)
-     (arguments executable "--no-pager" color "-n" "--recurse-submodules" group
-                context case-fold regexp "-e" query "--" file-wildcards)
+     (arguments executable "--no-pager" color "--no-index" "--exclude-standard"
+                "-n" group context case-fold regexp "-e" query "--"
+                file-wildcards)
      ;; git is a bit odd in that color specification happens *before* the
      ;; subcommand and turning colors on/off happens *after*, so
      ;; `color-arguments' needs to include the subcommand "grep".

Reply via email to