[gnome-builder] code-index: ignore directories contaiing ".noindex"
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] code-index: ignore directories contaiing ".noindex"
- Date: Tue, 26 Mar 2019 01:32:57 +0000 (UTC)
commit f3989c3961b9cdcff478a1a3838b63dc2922a637
Author: Christian Hergert <chergert redhat com>
Date: Mon Mar 25 18:31:25 2019 -0700
code-index: ignore directories contaiing ".noindex"
This allows ignoring problematic directories by adding a
.noindex file to the project-tree.
For projects that cannot add files to the repository, you can
add .noindex to your $HOME-wide .gitignore.
Related #711
src/plugins/code-index/gbp-code-index-plan.c | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/src/plugins/code-index/gbp-code-index-plan.c b/src/plugins/code-index/gbp-code-index-plan.c
index b366d7e65..febbc9346 100644
--- a/src/plugins/code-index/gbp-code-index-plan.c
+++ b/src/plugins/code-index/gbp-code-index-plan.c
@@ -456,16 +456,17 @@ gbp_code_index_plan_populate_worker (IdeTask *task,
g_assert (IDE_IS_VCS (state->vcs));
g_assert (G_IS_FILE (state->workdir));
- ide_g_file_walk (state->workdir,
- G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE","
- G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME","
- G_FILE_ATTRIBUTE_STANDARD_NAME","
- G_FILE_ATTRIBUTE_STANDARD_SIZE","
- G_FILE_ATTRIBUTE_STANDARD_TYPE","
- G_FILE_ATTRIBUTE_TIME_MODIFIED,
- cancellable,
- gbp_code_index_plan_populate_cb,
- task);
+ ide_g_file_walk_with_ignore (state->workdir,
+ G_FILE_ATTRIBUTE_STANDARD_CONTENT_TYPE","
+ G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME","
+ G_FILE_ATTRIBUTE_STANDARD_NAME","
+ G_FILE_ATTRIBUTE_STANDARD_SIZE","
+ G_FILE_ATTRIBUTE_STANDARD_TYPE","
+ G_FILE_ATTRIBUTE_TIME_MODIFIED,
+ ".noindex",
+ cancellable,
+ gbp_code_index_plan_populate_cb,
+ task);
ide_task_return_boolean (task, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]