[gnome-builder] file-search: Do not recurse into ignored directory



commit 27e8d6c528d8142b3649a959ce0594fbb8aa4307
Author: Thibault Saunier <tsaunier gnome org>
Date:   Fri Dec 18 10:18:05 2015 +0100

    file-search: Do not recurse into ignored directory
    
    Their might be a lot of things in there and we will anyway be ignoring
    each and every file one by one in this case.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759620

 plugins/file-search/gb-file-search-index.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/file-search/gb-file-search-index.c b/plugins/file-search/gb-file-search-index.c
index c85406e..9748b35 100644
--- a/plugins/file-search/gb-file-search-index.c
+++ b/plugins/file-search/gb-file-search-index.c
@@ -146,6 +146,9 @@ populate_from_dir (Fuzzy        *fuzzy,
   g_assert (G_IS_FILE (directory));
   g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
 
+  if (ide_vcs_is_ignored (vcs, directory, NULL))
+    return;
+
   enumerator = g_file_enumerate_children (directory,
                                           G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME","
                                           G_FILE_ATTRIBUTE_STANDARD_TYPE,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]