GitPython 3.1.55__tar.gz → 3.1.56__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.
Files changed (69) hide show
  1. {gitpython-3.1.55 → gitpython-3.1.56/GitPython.egg-info}/PKG-INFO +4 -1
  2. {gitpython-3.1.55/GitPython.egg-info → gitpython-3.1.56}/PKG-INFO +4 -1
  3. gitpython-3.1.56/VERSION +1 -0
  4. {gitpython-3.1.55 → gitpython-3.1.56}/doc/source/changes.rst +13 -0
  5. {gitpython-3.1.55 → gitpython-3.1.56}/git/__init__.py +1 -1
  6. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/commit.py +14 -1
  7. {gitpython-3.1.55 → gitpython-3.1.56}/setup.py +3 -0
  8. gitpython-3.1.55/VERSION +0 -1
  9. {gitpython-3.1.55 → gitpython-3.1.56}/AUTHORS +0 -0
  10. {gitpython-3.1.55 → gitpython-3.1.56}/CHANGES +0 -0
  11. {gitpython-3.1.55 → gitpython-3.1.56}/CONTRIBUTING.md +0 -0
  12. {gitpython-3.1.55 → gitpython-3.1.56}/GitPython.egg-info/SOURCES.txt +0 -0
  13. {gitpython-3.1.55 → gitpython-3.1.56}/GitPython.egg-info/dependency_links.txt +0 -0
  14. {gitpython-3.1.55 → gitpython-3.1.56}/GitPython.egg-info/not-zip-safe +0 -0
  15. {gitpython-3.1.55 → gitpython-3.1.56}/GitPython.egg-info/requires.txt +0 -0
  16. {gitpython-3.1.55 → gitpython-3.1.56}/GitPython.egg-info/top_level.txt +0 -0
  17. {gitpython-3.1.55 → gitpython-3.1.56}/LICENSE +0 -0
  18. {gitpython-3.1.55 → gitpython-3.1.56}/MANIFEST.in +0 -0
  19. {gitpython-3.1.55 → gitpython-3.1.56}/README.md +0 -0
  20. {gitpython-3.1.55 → gitpython-3.1.56}/doc/.gitignore +0 -0
  21. {gitpython-3.1.55 → gitpython-3.1.56}/doc/Makefile +0 -0
  22. {gitpython-3.1.55 → gitpython-3.1.56}/doc/requirements.txt +0 -0
  23. {gitpython-3.1.55 → gitpython-3.1.56}/doc/source/conf.py +0 -0
  24. {gitpython-3.1.55 → gitpython-3.1.56}/doc/source/index.rst +0 -0
  25. {gitpython-3.1.55 → gitpython-3.1.56}/doc/source/intro.rst +0 -0
  26. {gitpython-3.1.55 → gitpython-3.1.56}/doc/source/quickstart.rst +0 -0
  27. {gitpython-3.1.55 → gitpython-3.1.56}/doc/source/reference.rst +0 -0
  28. {gitpython-3.1.55 → gitpython-3.1.56}/doc/source/roadmap.rst +0 -0
  29. {gitpython-3.1.55 → gitpython-3.1.56}/doc/source/tutorial.rst +0 -0
  30. {gitpython-3.1.55 → gitpython-3.1.56}/git/cmd.py +0 -0
  31. {gitpython-3.1.55 → gitpython-3.1.56}/git/compat.py +0 -0
  32. {gitpython-3.1.55 → gitpython-3.1.56}/git/config.py +0 -0
  33. {gitpython-3.1.55 → gitpython-3.1.56}/git/db.py +0 -0
  34. {gitpython-3.1.55 → gitpython-3.1.56}/git/diff.py +0 -0
  35. {gitpython-3.1.55 → gitpython-3.1.56}/git/exc.py +0 -0
  36. {gitpython-3.1.55 → gitpython-3.1.56}/git/index/__init__.py +0 -0
  37. {gitpython-3.1.55 → gitpython-3.1.56}/git/index/base.py +0 -0
  38. {gitpython-3.1.55 → gitpython-3.1.56}/git/index/fun.py +0 -0
  39. {gitpython-3.1.55 → gitpython-3.1.56}/git/index/typ.py +0 -0
  40. {gitpython-3.1.55 → gitpython-3.1.56}/git/index/util.py +0 -0
  41. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/__init__.py +0 -0
  42. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/base.py +0 -0
  43. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/blob.py +0 -0
  44. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/fun.py +0 -0
  45. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/submodule/__init__.py +0 -0
  46. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/submodule/base.py +0 -0
  47. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/submodule/root.py +0 -0
  48. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/submodule/util.py +0 -0
  49. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/tag.py +0 -0
  50. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/tree.py +0 -0
  51. {gitpython-3.1.55 → gitpython-3.1.56}/git/objects/util.py +0 -0
  52. {gitpython-3.1.55 → gitpython-3.1.56}/git/py.typed +0 -0
  53. {gitpython-3.1.55 → gitpython-3.1.56}/git/refs/__init__.py +0 -0
  54. {gitpython-3.1.55 → gitpython-3.1.56}/git/refs/head.py +0 -0
  55. {gitpython-3.1.55 → gitpython-3.1.56}/git/refs/log.py +0 -0
  56. {gitpython-3.1.55 → gitpython-3.1.56}/git/refs/reference.py +0 -0
  57. {gitpython-3.1.55 → gitpython-3.1.56}/git/refs/remote.py +0 -0
  58. {gitpython-3.1.55 → gitpython-3.1.56}/git/refs/symbolic.py +0 -0
  59. {gitpython-3.1.55 → gitpython-3.1.56}/git/refs/tag.py +0 -0
  60. {gitpython-3.1.55 → gitpython-3.1.56}/git/remote.py +0 -0
  61. {gitpython-3.1.55 → gitpython-3.1.56}/git/repo/__init__.py +0 -0
  62. {gitpython-3.1.55 → gitpython-3.1.56}/git/repo/base.py +0 -0
  63. {gitpython-3.1.55 → gitpython-3.1.56}/git/repo/fun.py +0 -0
  64. {gitpython-3.1.55 → gitpython-3.1.56}/git/types.py +0 -0
  65. {gitpython-3.1.55 → gitpython-3.1.56}/git/util.py +0 -0
  66. {gitpython-3.1.55 → gitpython-3.1.56}/pyproject.toml +0 -0
  67. {gitpython-3.1.55 → gitpython-3.1.56}/requirements.txt +0 -0
  68. {gitpython-3.1.55 → gitpython-3.1.56}/setup.cfg +0 -0
  69. {gitpython-3.1.55 → gitpython-3.1.56}/test-requirements.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GitPython
3
- Version: 3.1.55
3
+ Version: 3.1.56
4
4
  Summary: GitPython is a Python library used to interact with Git repositories
5
5
  Home-page: https://github.com/gitpython-developers/GitPython
6
6
  Author: Sebastian Thiel, Michael Trier
@@ -22,6 +22,9 @@ Classifier: Programming Language :: Python :: 3.9
22
22
  Classifier: Programming Language :: Python :: 3.10
23
23
  Classifier: Programming Language :: Python :: 3.11
24
24
  Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Programming Language :: Python :: 3.15
25
28
  Requires-Python: >=3.7
26
29
  Description-Content-Type: text/markdown
27
30
  License-File: LICENSE
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: GitPython
3
- Version: 3.1.55
3
+ Version: 3.1.56
4
4
  Summary: GitPython is a Python library used to interact with Git repositories
5
5
  Home-page: https://github.com/gitpython-developers/GitPython
6
6
  Author: Sebastian Thiel, Michael Trier
@@ -22,6 +22,9 @@ Classifier: Programming Language :: Python :: 3.9
22
22
  Classifier: Programming Language :: Python :: 3.10
23
23
  Classifier: Programming Language :: Python :: 3.11
24
24
  Classifier: Programming Language :: Python :: 3.12
25
+ Classifier: Programming Language :: Python :: 3.13
26
+ Classifier: Programming Language :: Python :: 3.14
27
+ Classifier: Programming Language :: Python :: 3.15
25
28
  Requires-Python: >=3.7
26
29
  Description-Content-Type: text/markdown
27
30
  License-File: LICENSE
@@ -0,0 +1 @@
1
+ 3.1.56
@@ -2,6 +2,19 @@
2
2
  Changelog
3
3
  =========
4
4
 
5
+ 3.1.56
6
+ ======
7
+
8
+ A security fix for
9
+
10
+ * https://github.com/gitpython-developers/GitPython/security/advisories/GHSA-p538-c434-8v24
11
+
12
+ If you can, also try and provide feedback on the upcoming v4 branch
13
+ https://github.com/gitpython-developers/GitPython/pull/2177 - patches welcome.
14
+
15
+ See the following for all changes.
16
+ https://github.com/gitpython-developers/GitPython/releases/tag/3.1.55
17
+
5
18
  3.1.55
6
19
  ======
7
20
 
@@ -86,7 +86,7 @@ __all__ = [
86
86
  "to_hex_sha",
87
87
  ]
88
88
 
89
- __version__ = '3.1.55'
89
+ __version__ = '3.1.56'
90
90
 
91
91
  from typing import Any, List, Optional, Sequence, TYPE_CHECKING, Tuple, Union
92
92
 
@@ -269,13 +269,21 @@ class Commit(base.Object, TraversableIterableObj, Diffable, Serializable):
269
269
  else:
270
270
  return self.message.split(b"\n", 1)[0]
271
271
 
272
- def count(self, paths: Union[PathLike, Sequence[PathLike]] = "", **kwargs: Any) -> int:
272
+ def count(
273
+ self,
274
+ paths: Union[PathLike, Sequence[PathLike]] = "",
275
+ allow_unsafe_options: bool = False,
276
+ **kwargs: Any,
277
+ ) -> int:
273
278
  """Count the number of commits reachable from this commit.
274
279
 
275
280
  :param paths:
276
281
  An optional path or a list of paths restricting the return value to commits
277
282
  actually containing the paths.
278
283
 
284
+ :param allow_unsafe_options:
285
+ Allow unsafe options, like ``--output``.
286
+
279
287
  :param kwargs:
280
288
  Additional options to be passed to :manpage:`git-rev-list(1)`. They must not
281
289
  alter the output style of the command, or parsing will yield incorrect
@@ -284,6 +292,11 @@ class Commit(base.Object, TraversableIterableObj, Diffable, Serializable):
284
292
  :return:
285
293
  An int defining the number of reachable commits
286
294
  """
295
+ if not allow_unsafe_options:
296
+ Git.check_unsafe_options(
297
+ options=Git._option_candidates([], kwargs), unsafe_options=self.unsafe_git_rev_options
298
+ )
299
+
287
300
  # Yes, it makes a difference whether empty paths are given or not in our case as
288
301
  # the empty paths version will ignore merge commits for some reason.
289
302
  if paths:
@@ -108,5 +108,8 @@ setup(
108
108
  "Programming Language :: Python :: 3.10",
109
109
  "Programming Language :: Python :: 3.11",
110
110
  "Programming Language :: Python :: 3.12",
111
+ "Programming Language :: Python :: 3.13",
112
+ "Programming Language :: Python :: 3.14",
113
+ "Programming Language :: Python :: 3.15",
111
114
  ],
112
115
  )
gitpython-3.1.55/VERSION DELETED
@@ -1 +0,0 @@
1
- 3.1.55
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes