@@ -250,7 +250,7 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje
250
250
# list of RawConfigParser methods able to change the instance
251
251
_mutating_methods_ = ("add_section" , "remove_section" , "remove_option" , "set" )
252
252
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 ):
254
254
"""Initialize a configuration reader to read the given file_or_files and to
255
255
possibly allow changes to it by setting read_only False
256
256
@@ -265,7 +265,10 @@ def __init__(self, file_or_files=None, read_only=True, merge_includes=True, conf
265
265
:param merge_includes: if True, we will read files mentioned in [include] sections and merge their
266
266
contents into ours. This makes it impossible to write back an individual configuration file.
267
267
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
+ """
269
272
cp .RawConfigParser .__init__ (self , dict_type = _OMD )
270
273
271
274
# 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
287
290
self ._dirty = False
288
291
self ._is_initialized = False
289
292
self ._merge_includes = merge_includes
293
+ self ._repo = repo
290
294
self ._lock = None
291
295
self ._acquire_lock ()
292
296
0 commit comments