Pygit2

Latest version: v1.16.0

Safety actively analyzes 714772 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 12

1.6.0

- New optional `proxy` argument in `Remote` methods
[642](https://github.com/libgit2/pygit2/issues/642)
[1063](https://github.com/libgit2/pygit2/pull/1063)
[1069](https://github.com/libgit2/pygit2/issues/1069)
- New GIT_MERGE_PREFERENCE constants
[1071](https://github.com/libgit2/pygit2/pull/1071)
- Don\'t require cached-property with Python 3.8 or later
[1066](https://github.com/libgit2/pygit2/pull/1066)
- Add wheels for aarch64
[1077](https://github.com/libgit2/pygit2/issues/1077)
[1078](https://github.com/libgit2/pygit2/pull/1078)
- Documentation fixes
[1068](https://github.com/libgit2/pygit2/pull/1068)
[1072](https://github.com/libgit2/pygit2/pull/1072)
- Refactored build and CI, new `build.sh` script

Breaking changes:

- Remove deprecated `GIT_CREDTYPE_XXX` contants, use
`GIT_CREDENTIAL_XXX` instead.
- Remove deprecated `Patch.patch` getter, use `Patch.text` instead.

1.5.0

- New `PackBuilder` class and `Repository.pack(...)`
[1048](https://github.com/libgit2/pygit2/pull/1048)
- New `Config.delete_multivar(...)`
[1056](https://github.com/libgit2/pygit2/pull/1056)
- New `Repository.is_shallow`
[1058](https://github.com/libgit2/pygit2/pull/1058)
- New optional `message` argument in
`Repository.create_reference(...)`
[1061](https://github.com/libgit2/pygit2/issues/1061)
[1062](https://github.com/libgit2/pygit2/pull/1062)
- Fix truncated diff when there are nulls
[1047](https://github.com/libgit2/pygit2/pull/1047)
[1043](https://github.com/libgit2/pygit2/issues/1043)
- Unit tests & Continuous integration
[1039](https://github.com/libgit2/pygit2/issues/1039)
[1052](https://github.com/libgit2/pygit2/pull/1052)

Breaking changes:

- Fix `Index.add(...)` raise `TypeError` instead of `AttributeError`
when arguments are of unexpected type

1.4.0

- Upgrade to libgit2 1.1, new `GIT_BLAME_IGNORE_WHITESPACE` constant
[1040](https://github.com/libgit2/pygit2/issues/1040)
- Add wheels for Python 3.9
[1038](https://github.com/libgit2/pygit2/issues/1038)
- Drop support for PyPy3 7.2
- New optional `flags` argument in `Repository.__init__(...)`, new
`GIT_REPOSITORY_OPEN_*` constants
[1044](https://github.com/libgit2/pygit2/pull/1044)
- Documentation [509](https://github.com/libgit2/pygit2/issues/509)
[752](https://github.com/libgit2/pygit2/issues/752)
[1037](https://github.com/libgit2/pygit2/issues/1037)
[1045](https://github.com/libgit2/pygit2/issues/1045)

1.3.0

- New `Repository.add_submodule(...)`
[1011](https://github.com/libgit2/pygit2/pull/1011)
- New `Repository.applies(...)`
[1019](https://github.com/libgit2/pygit2/pull/1019)
- New `Repository.revparse(...)` and `Repository.revparse_ext(...)`
[1022](https://github.com/libgit2/pygit2/pull/1022)
- New optional `flags` and `file_flags` arguments in
`Repository.merge_commits` and `Repository.merge_trees`
[1008](https://github.com/libgit2/pygit2/pull/1008)
- New `Reference.raw_target`, `Repository.raw_listall_branches(...)`
and `Repository.raw_listall_references()`; allow bytes in
`Repository.lookup_branch(...)` and `Repository.diff(...)`
[1029](https://github.com/libgit2/pygit2/pull/1029)
- New `GIT_BLAME_FIRST_PARENT` and `GIT_BLAME_USE_MAILMAP` constants
[1031](https://github.com/libgit2/pygit2/pull/1031)
- New `IndexEntry` supports `repr()`, `str()`, `==` and `!=`
[1009](https://github.com/libgit2/pygit2/pull/1009)
- New `Object` supports `repr()`
[1022](https://github.com/libgit2/pygit2/pull/1022)
- New accept tuples of strings (not only lists) in a number of places
[1025](https://github.com/libgit2/pygit2/pull/1025)
- Fix compatibility with old macOS 10.9
[1026](https://github.com/libgit2/pygit2/issues/1026)
[1027](https://github.com/libgit2/pygit2/pull/1027)
- Fix check argument type in `Repository.apply(...)`
[1033](https://github.com/libgit2/pygit2/issues/1033)
- Fix raise exception if error in `Repository.listall_submodules()`
commit 32133974
- Fix a couple of refcount errors in `OdbBackend.refresh()` and
`Worktree_is_prunable` commit fed0c19c
- Unit tests [800](https://github.com/libgit2/pygit2/issues/800)
[1015](https://github.com/libgit2/pygit2/pull/1015)
- Documentation [705](https://github.com/libgit2/pygit2/pull/705)

1.2.1

- Fix segfault in `Object.raw_name` when not reached through a tree
[1002](https://github.com/libgit2/pygit2/pull/1002)
- Internal: Use \ffi.def_extern instead of \ffi.callback
[899](https://github.com/libgit2/pygit2/issues/899)
- Internal: callbacks code refactored
- Test suite completely switched to pytest
[824](https://github.com/libgit2/pygit2/issues/824)
- New unit tests [538](https://github.com/libgit2/pygit2/pull/538)
[996](https://github.com/libgit2/pygit2/issues/996)
- Documentation changes
[999](https://github.com/libgit2/pygit2/issues/999)

Deprecations:

- Deprecate `Repository.create_remote(...)`, use instead
`Repository.remotes.create(...)`
- Deprecate `GIT_CREDTYPE_XXX` contants, use `GIT_CREDENTIAL_XXX`
instead.

1.2.0

- Drop support for Python 3.5
[991](https://github.com/libgit2/pygit2/issues/991)
- Upgrade to libgit2 1.0
[982](https://github.com/libgit2/pygit2/pull/982)
- New support for custom reference database backends
[982](https://github.com/libgit2/pygit2/pull/982)
- New support for path objects
[990](https://github.com/libgit2/pygit2/pull/990)
[955](https://github.com/libgit2/pygit2/issues/955)
- New `index` optional parameter in `Repository.checkout_index`
[987](https://github.com/libgit2/pygit2/pull/987)
- New MacOS wheels [988](https://github.com/libgit2/pygit2/pull/988)
- Fix re-raise exception from credentials callback in clone_repository
[996](https://github.com/libgit2/pygit2/issues/996)
- Fix warning with `pip install pygit2`
[986](https://github.com/libgit2/pygit2/issues/986)
- Tests: disable global Git config
[989](https://github.com/libgit2/pygit2/issues/989)

Page 5 of 12

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.