[gitg] Consider author and committer when filtering



commit 5b7017808ba1788f25e050ecf0f89c0fd71e48ec
Author: Diogo Ferreira <diogo underdev org>
Date:   Fri Sep 27 14:53:40 2019 +0100

    Consider author and committer when filtering

 gitg/history/gitg-history.vala | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/gitg/history/gitg-history.vala b/gitg/history/gitg-history.vala
index 09dd67f1..fc5d93cb 100644
--- a/gitg/history/gitg-history.vala
+++ b/gitg/history/gitg-history.vala
@@ -1135,6 +1135,16 @@ namespace GitgHistory
                                return false;
                        }
 
+                       var author = c.get_author();
+                       if (author.get_name().down().contains(nkey) || 
author.get_email().down().contains(nkey)) {
+                               return false;
+                       }
+
+                       var committer = c.get_committer();
+                       if (committer.get_name().down().contains(nkey) || 
committer.get_email().down().contains(nkey)) {
+                               return false;
+                       }
+
                        return true;
                }
 


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