Bump pygit2 to 1.15.* (#12319)

This commit is contained in:
sobolevn
2024-07-13 18:38:05 +03:00
committed by GitHub
parent c4f7a72e50
commit 4740d320c5
3 changed files with 13 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
version = "1.15.0"
version = "1.15.*"
upstream_repository = "https://github.com/libgit2/pygit2"
requires = ["types-cffi"]

View File

@@ -194,6 +194,7 @@ class BaseRepository(_Repository):
@property
def ident(self) -> tuple[str, str]: ...
def set_ident(self, name: bytes | str | None, email: bytes | str | None) -> None: ...
def revert(self, commit: Commit) -> None: ...
def revert_commit(self, revert_commit: Commit, our_commit: Commit, mainline: int = 0) -> Index: ...
def amend_commit(
self,

View File

@@ -9,18 +9,18 @@ class Submodule:
def __del__(self) -> None: ...
def open(self) -> Repository: ...
def init(self, overwrite: bool = False) -> None: ...
def update(self, init: bool = False, callbacks: RemoteCallbacks | None = None) -> None: ...
def update(self, init: bool = False, callbacks: RemoteCallbacks | None = None, depth: int = 0) -> None: ...
def reload(self, force: bool = False) -> None: ...
@property
def name(self) -> str: ...
@property
def path(self) -> str: ...
@property
def url(self) -> str: ...
def url(self) -> str | None: ...
@property
def branch(self) -> str: ...
@property
def head_id(self) -> Oid: ...
def head_id(self) -> Oid | None: ...
class SubmoduleCollection:
def __init__(self, repository: BaseRepository) -> None: ...
@@ -28,10 +28,16 @@ class SubmoduleCollection:
def __contains__(self, name: str) -> bool: ...
def __iter__(self) -> Iterator[Submodule]: ...
def get(self, name: str) -> Submodule | None: ...
def add(self, url: str, path: str, link: bool = True, callbacks: RemoteCallbacks | None = None) -> Submodule: ...
def add(
self, url: str, path: str, link: bool = True, callbacks: RemoteCallbacks | None = None, depth: int = 0
) -> Submodule: ...
def init(self, submodules: Iterable[str] | None = None, overwrite: bool = False) -> None: ...
def update(
self, submodules: Iterable[str] | None = None, init: bool = False, callbacks: RemoteCallbacks | None = None
self,
submodules: Iterable[str] | None = None,
init: bool = False,
callbacks: RemoteCallbacks | None = None,
depth: int = 0,
) -> None: ...
def status(self, name: str, ignore: SubmoduleIgnore = ...) -> SubmoduleStatus: ...
def cache_all(self) -> None: ...