@@ -250,7 +250,7 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje
250250 # list of RawConfigParser methods able to change the instance
251251 _mutating_methods_ = ("add_section" , "remove_section" , "remove_option" , "set" )
252252
253- def __init__ (self , file_or_files = None , read_only = True , merge_includes = True , config_level = None ):
253+ def __init__ (self , file_or_files = None , read_only = True , merge_includes = True , config_level = None , repo = None ):
254254 """Initialize a configuration reader to read the given file_or_files and to
255255 possibly allow changes to it by setting read_only False
256256
@@ -265,7 +265,10 @@ def __init__(self, file_or_files=None, read_only=True, merge_includes=True, conf
265265 :param merge_includes: if True, we will read files mentioned in [include] sections and merge their
266266 contents into ours. This makes it impossible to write back an individual configuration file.
267267 Thus, if you want to modify a single configuration file, turn this off to leave the original
268- dataset unaltered when reading it."""
268+ dataset unaltered when reading it.
269+ :param repo: Reference to repository to use if [includeIf] sections are found in configuration files.
270+
271+ """
269272 cp .RawConfigParser .__init__ (self , dict_type = _OMD )
270273
271274 # Used in python 3, needs to stay in sync with sections for underlying implementation to work
@@ -287,6 +290,7 @@ def __init__(self, file_or_files=None, read_only=True, merge_includes=True, conf
287290 self ._dirty = False
288291 self ._is_initialized = False
289292 self ._merge_includes = merge_includes
293+ self ._repo = repo
290294 self ._lock = None
291295 self ._acquire_lock ()
292296
0 commit comments