[gnome-builder] code-index: ignore .in style macro expansion files



commit 4ca1200be4a730ba51dc7a4fe23cdb33913d65cd
Author: Christian Hergert <chergert redhat com>
Date:   Sat Feb 2 01:48:01 2019 -0800

    code-index: ignore .in style macro expansion files

 src/plugins/code-index/gbp-code-index-plan.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/code-index/gbp-code-index-plan.c b/src/plugins/code-index/gbp-code-index-plan.c
index 39140da35..78d50a05f 100644
--- a/src/plugins/code-index/gbp-code-index-plan.c
+++ b/src/plugins/code-index/gbp-code-index-plan.c
@@ -521,6 +521,10 @@ gbp_code_index_plan_populate_cb (GFile     *directory,
       if (ide_vcs_is_ignored (state->vcs, file, NULL))
         continue;
 
+      /* Ignore .in files since those may bet miss-reported */
+      if (g_str_has_suffix (name, ".in"))
+        continue;
+
       reversed = g_utf8_strreverse (name, -1);
       mime_type = g_file_info_get_attribute_string (file_info, G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE);
 


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