Skip to content

Commit d9f47c3

Browse files
authored
Bump pygit2 to 1.15 and fix enums (#11983)
1 parent 5445a4a commit d9f47c3

File tree

7 files changed

+335
-347
lines changed

7 files changed

+335
-347
lines changed

stubs/pygit2/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "1.14.*"
1+
version = "1.15.*"
22
upstream_repository = "https://github.com/libgit2/pygit2"
33
requires = ["types-cffi"]
44

stubs/pygit2/pygit2/_pygit2.pyi

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ GIT_CHECKOUT_USE_OURS: int
6767
GIT_CHECKOUT_USE_THEIRS: int
6868
GIT_CONFIG_HIGHEST_LEVEL: int
6969
GIT_CONFIG_LEVEL_APP: int
70+
GIT_CONFIG_LEVEL_WORKTREE: int
7071
GIT_CONFIG_LEVEL_GLOBAL: int
7172
GIT_CONFIG_LEVEL_LOCAL: int
7273
GIT_CONFIG_LEVEL_PROGRAMDATA: int
@@ -175,11 +176,6 @@ GIT_OBJECT_OFS_DELTA: int
175176
GIT_OBJECT_REF_DELTA: int
176177
GIT_OBJECT_TAG: int
177178
GIT_OBJECT_TREE: int
178-
GIT_OBJ_ANY: int
179-
GIT_OBJ_BLOB: int
180-
GIT_OBJ_COMMIT: int
181-
GIT_OBJ_TAG: int
182-
GIT_OBJ_TREE: int
183179
GIT_OID_HEXSZ: int
184180
GIT_OID_HEX_ZERO: str
185181
GIT_OID_MINPREFIXLEN: int
@@ -217,16 +213,9 @@ GIT_OPT_SET_WINDOWS_SHAREMODE: int
217213
GIT_REFERENCES_ALL: int
218214
GIT_REFERENCES_BRANCHES: int
219215
GIT_REFERENCES_TAGS: int
220-
GIT_REF_INVALID: int
221-
GIT_REF_LISTALL: int
222-
GIT_REF_OID: int
223-
GIT_REF_SYMBOLIC: int
224216
GIT_RESET_HARD: int
225217
GIT_RESET_MIXED: int
226218
GIT_RESET_SOFT: int
227-
GIT_REVPARSE_MERGE_BASE: int
228-
GIT_REVPARSE_RANGE: int
229-
GIT_REVPARSE_SINGLE: int
230219
GIT_REVSPEC_MERGE_BASE: int
231220
GIT_REVSPEC_RANGE: int
232221
GIT_REVSPEC_SINGLE: int
@@ -287,10 +276,8 @@ _GIT_OBJ_TREE: TypeAlias = Literal[2]
287276
class Object:
288277
_pointer: bytes
289278
filemode: FileMode
290-
hex: str
291279
id: Oid
292280
name: str | None
293-
oid: Oid
294281
raw_name: bytes | None
295282
short_id: str
296283
type: Literal[_GIT_OBJ_COMMIT, _GIT_OBJ_TREE, _GIT_OBJ_TAG, _GIT_OBJ_BLOB]
@@ -526,7 +513,6 @@ class OdbBackendPack(OdbBackend):
526513

527514
@final
528515
class Oid:
529-
hex: str
530516
raw: bytes
531517
def __init__(self, raw: bytes = ..., hex: str = ...) -> None: ...
532518
def __eq__(self, other: object) -> bool: ...

0 commit comments

Comments
 (0)