Skip to content

Commit 4242376

Browse files
authored
Ignore git folders as well (#62)
1 parent b94af5e commit 4242376

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ Current Filter Setting (Following is applied sequentially)
150150
3. \tet\ is excluded
151151
4. \.cvs\ is excluded
152152
5. \.svn\ is excluded
153+
6. \.git\ is excluded
153154
154155
Current File extension and Language Settings
155156
C/C++=c,cxx,h,hpp,cpp,hxx

nsiqcppstyle_exe.py

+2
Original file line numberDiff line numberDiff line change
@@ -435,11 +435,13 @@ def __init__(self, fileFilterPath, filterStringList, extLangMap, varMap, activeF
435435
if len(filter.nsiqCppStyleRules) == 0:
436436
filter.AddExclude("/.svn/")
437437
filter.AddExclude("/.cvs/")
438+
filter.AddExclude("/.git/")
438439
return
439440

440441
for eachMapKey in self.filterMap:
441442
self.filterMap[eachMapKey].AddExclude("/.cvs/")
442443
self.filterMap[eachMapKey].AddExclude("/.svn/")
444+
self.filterMap[eachMapKey].AddExclude("/.git/")
443445

444446
if activeFilterName in self.filterMap:
445447
self.activeFilterName = activeFilterName

0 commit comments

Comments
 (0)