[gnome-builder] todo: ignore .m4 files
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] todo: ignore .m4 files
- Date: Wed, 11 May 2016 10:24:37 +0000 (UTC)
commit 1f83dab5ade9d7ce7858df995ece87493a05c53e
Author: Christian Hergert <chergert redhat com>
Date: Wed May 11 13:24:16 2016 +0300
todo: ignore .m4 files
I don't think anyone will be too annoyed by this, unless they are writing
autoconf-archive or something.
plugins/todo/todo_plugin/__init__.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plugins/todo/todo_plugin/__init__.py b/plugins/todo/todo_plugin/__init__.py
index 11904af..d292b75 100644
--- a/plugins/todo/todo_plugin/__init__.py
+++ b/plugins/todo/todo_plugin/__init__.py
@@ -87,7 +87,8 @@ class TodoWorkbenchAddin(GObject.Object, Ide.WorkbenchAddin):
vcs = context.get_vcs()
for item in items:
- if vcs.is_ignored(item.props.file):
+ file = item.props.file
+ if vcs.is_ignored(file) or file.get_basename().endswith('.m4'):
continue
self.panel.add_item(item, prepend=prepend)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]