[gnome-builder] grep: use git grep --untracked
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-builder] grep: use git grep --untracked
- Date: Sat,  3 Nov 2018 18:18:55 +0000 (UTC)
commit a8580e56fa86a2e73252a82c2822c1b1e84181ae
Author: Christian Hergert <chergert redhat com>
Date:   Sat Nov 3 11:18:37 2018 -0700
    grep: use git grep --untracked
    
    This allows for new/moved files to be searched, as long as they don't
    match the .gitignore files.
 src/plugins/grep/gbp-grep-model.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/grep/gbp-grep-model.c b/src/plugins/grep/gbp-grep-model.c
index f4b120f45..e7b480133 100644
--- a/src/plugins/grep/gbp-grep-model.c
+++ b/src/plugins/grep/gbp-grep-model.c
@@ -611,6 +611,9 @@ gbp_grep_model_create_launcher (GbpGrepModel *self)
     {
       if (!self->recursive)
         ide_subprocess_launcher_push_argv (launcher, "--max-depth=0");
+
+      /* Allow files that are untracked, but not ignored */
+      ide_subprocess_launcher_push_argv (launcher, "--untracked");
     }
 
   ide_subprocess_launcher_push_argv (launcher, "-E");
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]