diff --git a/README.md b/README.md index 2886f63..8930d87 100644 --- a/README.md +++ b/README.md @@ -150,6 +150,7 @@ Current Filter Setting (Following is applied sequentially) 3. \tet\ is excluded 4. \.cvs\ is excluded 5. \.svn\ is excluded + 6. \.git\ is excluded Current File extension and Language Settings C/C++=c,cxx,h,hpp,cpp,hxx diff --git a/nsiqcppstyle_exe.py b/nsiqcppstyle_exe.py index f3c519f..9e274cc 100755 --- a/nsiqcppstyle_exe.py +++ b/nsiqcppstyle_exe.py @@ -435,11 +435,13 @@ def __init__(self, fileFilterPath, filterStringList, extLangMap, varMap, activeF if len(filter.nsiqCppStyleRules) == 0: filter.AddExclude("/.svn/") filter.AddExclude("/.cvs/") + filter.AddExclude("/.git/") return for eachMapKey in self.filterMap: self.filterMap[eachMapKey].AddExclude("/.cvs/") self.filterMap[eachMapKey].AddExclude("/.svn/") + self.filterMap[eachMapKey].AddExclude("/.git/") if activeFilterName in self.filterMap: self.activeFilterName = activeFilterName