GitPython 3.1.48__tar.gz → 3.1.49__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gitpython-3.1.48 → gitpython-3.1.49/GitPython.egg-info}/PKG-INFO +1 -1
- {gitpython-3.1.48/GitPython.egg-info → gitpython-3.1.49}/PKG-INFO +1 -1
- gitpython-3.1.49/VERSION +1 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/source/changes.rst +11 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/__init__.py +1 -1
- {gitpython-3.1.48 → gitpython-3.1.49}/git/config.py +22 -2
- gitpython-3.1.49/git/repo/fun.py +736 -0
- gitpython-3.1.48/VERSION +0 -1
- gitpython-3.1.48/git/repo/fun.py +0 -425
- {gitpython-3.1.48 → gitpython-3.1.49}/AUTHORS +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/CHANGES +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/CONTRIBUTING.md +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/GitPython.egg-info/SOURCES.txt +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/GitPython.egg-info/dependency_links.txt +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/GitPython.egg-info/not-zip-safe +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/GitPython.egg-info/requires.txt +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/GitPython.egg-info/top_level.txt +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/LICENSE +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/MANIFEST.in +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/README.md +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/.gitignore +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/Makefile +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/requirements.txt +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/source/conf.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/source/index.rst +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/source/intro.rst +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/source/quickstart.rst +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/source/reference.rst +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/source/roadmap.rst +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/doc/source/tutorial.rst +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/cmd.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/compat.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/db.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/diff.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/exc.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/index/__init__.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/index/base.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/index/fun.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/index/typ.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/index/util.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/__init__.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/base.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/blob.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/commit.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/fun.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/submodule/__init__.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/submodule/base.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/submodule/root.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/submodule/util.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/tag.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/tree.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/objects/util.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/py.typed +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/refs/__init__.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/refs/head.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/refs/log.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/refs/reference.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/refs/remote.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/refs/symbolic.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/refs/tag.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/remote.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/repo/__init__.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/repo/base.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/types.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/git/util.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/pyproject.toml +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/requirements.txt +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/setup.cfg +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/setup.py +0 -0
- {gitpython-3.1.48 → gitpython-3.1.49}/test-requirements.txt +0 -0
gitpython-3.1.49/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.49
|
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
Changelog
|
|
3
3
|
=========
|
|
4
4
|
|
|
5
|
+
3.1.49
|
|
6
|
+
======
|
|
7
|
+
|
|
8
|
+
Save setting of configuration values,
|
|
9
|
+
which cuold be used to inject other more configuration.
|
|
10
|
+
|
|
11
|
+
Also more conforming `rev-parse` implementation.
|
|
12
|
+
|
|
13
|
+
See the following for all changes.
|
|
14
|
+
https://github.com/gitpython-developers/GitPython/releases/tag/3.1.49
|
|
15
|
+
|
|
5
16
|
3.1.48
|
|
6
17
|
======
|
|
7
18
|
|
|
@@ -882,6 +882,24 @@ class GitConfigParser(cp.RawConfigParser, metaclass=MetaParserBuilder):
|
|
|
882
882
|
return str(value)
|
|
883
883
|
return force_text(value)
|
|
884
884
|
|
|
885
|
+
def _value_to_string_safe(self, value: Union[str, bytes, int, float, bool]) -> str:
|
|
886
|
+
value_str = self._value_to_string(value)
|
|
887
|
+
if re.search(r"[\r\n\x00]", value_str):
|
|
888
|
+
raise ValueError("Git config values must not contain CR, LF, or NUL")
|
|
889
|
+
return value_str
|
|
890
|
+
|
|
891
|
+
@needs_values
|
|
892
|
+
@set_dirty_and_flush_changes
|
|
893
|
+
def set(
|
|
894
|
+
self,
|
|
895
|
+
section: str,
|
|
896
|
+
option: str,
|
|
897
|
+
value: Union[str, bytes, int, float, bool, None] = None,
|
|
898
|
+
) -> None:
|
|
899
|
+
if value is not None:
|
|
900
|
+
value = self._value_to_string_safe(value)
|
|
901
|
+
return super().set(section, option, value)
|
|
902
|
+
|
|
885
903
|
@needs_values
|
|
886
904
|
@set_dirty_and_flush_changes
|
|
887
905
|
def set_value(self, section: str, option: str, value: Union[str, bytes, int, float, bool]) -> "GitConfigParser":
|
|
@@ -902,9 +920,10 @@ class GitConfigParser(cp.RawConfigParser, metaclass=MetaParserBuilder):
|
|
|
902
920
|
:return:
|
|
903
921
|
This instance
|
|
904
922
|
"""
|
|
923
|
+
value_str = self._value_to_string_safe(value)
|
|
905
924
|
if not self.has_section(section):
|
|
906
925
|
self.add_section(section)
|
|
907
|
-
|
|
926
|
+
super().set(section, option, value_str)
|
|
908
927
|
return self
|
|
909
928
|
|
|
910
929
|
@needs_values
|
|
@@ -929,9 +948,10 @@ class GitConfigParser(cp.RawConfigParser, metaclass=MetaParserBuilder):
|
|
|
929
948
|
:return:
|
|
930
949
|
This instance
|
|
931
950
|
"""
|
|
951
|
+
value_str = self._value_to_string_safe(value)
|
|
932
952
|
if not self.has_section(section):
|
|
933
953
|
self.add_section(section)
|
|
934
|
-
self._sections[section].add(option,
|
|
954
|
+
self._sections[section].add(option, value_str)
|
|
935
955
|
return self
|
|
936
956
|
|
|
937
957
|
def rename_section(self, section: str, new_name: str) -> "GitConfigParser":
|