diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2015-01-20 20:56:33 +0100 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2015-01-20 20:56:33 +0100 |
commit | 9fbae711b76a4f2fa9345f43da6d2cdedd75d6c3 (patch) | |
tree | e203a3ea4ab21dc4db72e7df3ec52237e7cd65ae /git/config.py | |
parent | ea29541e213df928d356b3c12d4d074001395d3c (diff) | |
download | gitpython-9fbae711b76a4f2fa9345f43da6d2cdedd75d6c3.tar.gz |
Greatly improved possible safety of Submodule.update(), which is used by default.
Previously, the implementation would gladly reset new commits in submodules,
and/or reset a dirty working tree.
Now the new force_reset/force flag has to be specified explicitly to get back
to the old behaviour.
All submodule tests except for one are working.
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git/config.py b/git/config.py index ed61bf93..38dd1b44 100644 --- a/git/config.py +++ b/git/config.py @@ -546,10 +546,12 @@ class GitConfigParser(with_metaclass(MetaParserBuilder, cp.RawConfigParser, obje :param option: Name of the options whose value to set :param value: Value to set the option to. It must be a string or convertible - to a string""" + to a string + :return: this instance""" if not self.has_section(section): self.add_section(section) self.set(section, option, self._value_to_string(value)) + return self def rename_section(self, section, new_name): """rename the given section to new_name |