mirror of
https://github.com/ejwa/gitinspector.git
synced 2024-11-16 00:28:25 +01:00
Filtering and the -x/--exclude option now support regular expressions.
Thanks to this change; we can support the --exclude option in conjunction with git-config.
This commit is contained in:
parent
8bd761f872
commit
aec58ac499
1 changed files with 2 additions and 1 deletions
|
@ -20,6 +20,7 @@
|
|||
from __future__ import print_function
|
||||
from __future__ import unicode_literals
|
||||
from outputable import Outputable
|
||||
import re
|
||||
import terminal
|
||||
import textwrap
|
||||
|
||||
|
@ -40,7 +41,7 @@ def set_filtered(file_name):
|
|||
|
||||
if len(string) > 0:
|
||||
for i in __filters__:
|
||||
if string.find(i) != -1:
|
||||
if re.search(i, string) != None:
|
||||
__filtered_files__.add(string)
|
||||
return True
|
||||
return False
|
||||
|
|
Loading…
Reference in a new issue