Pygit2

Latest version: v1.16.0

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

Scan your dependencies

Page 7 of 12

0.28.2

- Fix crash in reflog iteration
[901](https://github.com/libgit2/pygit2/issues/901)
- Support symbolic references in `branches.with_commit(..)`
[910](https://github.com/libgit2/pygit2/issues/910)
- Documentation updates
[909](https://github.com/libgit2/pygit2/pull/909)
- Test updates [911](https://github.com/libgit2/pygit2/pull/911)

0.28.1

- Now works with pycparser 2.18 and above
[846](https://github.com/libgit2/pygit2/issues/846)
- Now `Repository.write_archive(..)` keeps the file mode
[616](https://github.com/libgit2/pygit2/issues/616)
[898](https://github.com/libgit2/pygit2/pull/898)
- New `Patch.data` returns the raw contents of the patch as a byte
string [790](https://github.com/libgit2/pygit2/pull/790)
[893](https://github.com/libgit2/pygit2/pull/893)
- New `Patch.text` returns the contents of the patch as a text string,
deprecates [Patch.patch]{.title-ref}
[790](https://github.com/libgit2/pygit2/pull/790)
[893](https://github.com/libgit2/pygit2/pull/893)

Deprecations:

- `Patch.patch` is deprecated, use `Patch.text` instead

0.28.0

- Upgrade to libgit2 0.28
[878](https://github.com/libgit2/pygit2/issues/878)
- Add binary wheels for Linux
[793](https://github.com/libgit2/pygit2/issues/793)
[869](https://github.com/libgit2/pygit2/pull/869)
[874](https://github.com/libgit2/pygit2/pull/874)
[875](https://github.com/libgit2/pygit2/pull/875)
[883](https://github.com/libgit2/pygit2/pull/883)
- New `pygit2.Mailmap`, see documentation
[804](https://github.com/libgit2/pygit2/pull/804)
- New `Repository.apply(...)` wraps `git_apply(..)`
[841](https://github.com/libgit2/pygit2/issues/841)
[843](https://github.com/libgit2/pygit2/pull/843)
- Now `Repository.merge_analysis(...)` accepts an optional reference
parameter [888](https://github.com/libgit2/pygit2/pull/888)
[891](https://github.com/libgit2/pygit2/pull/891)
- Now `Repository.add_worktree(...)` accepts an optional reference
parameter [814](https://github.com/libgit2/pygit2/issues/814)
[889](https://github.com/libgit2/pygit2/pull/889)
- Now it\'s possible to set SSL certificate locations
[876](https://github.com/libgit2/pygit2/issues/876)
[879](https://github.com/libgit2/pygit2/pull/879)
[884](https://github.com/libgit2/pygit2/pull/884)
[886](https://github.com/libgit2/pygit2/pull/886)
- Test and documentation improvements
[873](https://github.com/libgit2/pygit2/pull/873)
[887](https://github.com/libgit2/pygit2/pull/887)

Breaking changes:

- Now `worktree.path` returns the path to the worktree directory, not
to the [.git]{.title-ref} file within
[803](https://github.com/libgit2/pygit2/issues/803)
- Remove undocumented `worktree.git_path`
[803](https://github.com/libgit2/pygit2/issues/803)

0.27.4

- New `pygit2.LIBGIT2_VER` tuple
[845](https://github.com/libgit2/pygit2/issues/845)
[848](https://github.com/libgit2/pygit2/pull/848)
- New objects now support (in)equality comparison and hash
[852](https://github.com/libgit2/pygit2/issues/852)
[853](https://github.com/libgit2/pygit2/pull/853)
- New references now support (in)equality comparison
[860](https://github.com/libgit2/pygit2/issues/860)
[862](https://github.com/libgit2/pygit2/pull/862)
- New `paths` optional argument in `Repository.checkout()`
[858](https://github.com/libgit2/pygit2/issues/858)
[859](https://github.com/libgit2/pygit2/pull/859)
- Fix speed and windows package regression
[849](https://github.com/libgit2/pygit2/issues/849)
[857](https://github.com/libgit2/pygit2/issues/857)
[851](https://github.com/libgit2/pygit2/pull/851)
- Fix deprecation warning
[850](https://github.com/libgit2/pygit2/pull/850)
- Documentation fixes
[855](https://github.com/libgit2/pygit2/pull/855)
- Add Python classifiers to setup.py
[861](https://github.com/libgit2/pygit2/pull/861)
- Speeding up tests in Travis
[854](https://github.com/libgit2/pygit2/pull/854)

Breaking changes:

- Remove deprecated [Reference.get_object()]{.title-ref}, use
[Reference.peel()]{.title-ref} instead

0.27.3

- Move to pytest, drop support for Python 3.3 and cffi 0.x
[824](https://github.com/libgit2/pygit2/issues/824)
[826](https://github.com/libgit2/pygit2/pull/826)
[833](https://github.com/libgit2/pygit2/pull/833)
[834](https://github.com/libgit2/pygit2/pull/834)
- New support comparing signatures for (in)equality
- New `Submodule.head_id`
[817](https://github.com/libgit2/pygit2/pull/817)
- New `Remote.prune(...)`
[825](https://github.com/libgit2/pygit2/pull/825)
- New `pygit2.reference_is_valid_name(...)`
[827](https://github.com/libgit2/pygit2/pull/827)
- New `AlreadyExistsError` and `InvalidSpecError`
[828](https://github.com/libgit2/pygit2/issues/828)
[829](https://github.com/libgit2/pygit2/pull/829)
- New `Reference.raw_name`, `Reference.raw_shorthand`, `Tag.raw_name`,
`Tag.raw_message` and `DiffFile.raw_path`
[840](https://github.com/libgit2/pygit2/pull/840)
- Fix decode error in commit messages and signatures
[839](https://github.com/libgit2/pygit2/issues/839)
- Fix, raise error in `Repository.descendant_of(...)` if commit
doesn\'t exist [822](https://github.com/libgit2/pygit2/issues/822)
[842](https://github.com/libgit2/pygit2/pull/842)
- Documentation fixes
[821](https://github.com/libgit2/pygit2/pull/821)

Breaking changes:

- Remove undocumented `Tag._message`, replaced by `Tag.raw_message`

0.27.2

- Add support for Python 3.7
[809](https://github.com/libgit2/pygit2/issues/809)
- New `Object.short_id`
[799](https://github.com/libgit2/pygit2/issues/799)
[806](https://github.com/libgit2/pygit2/pull/806)
[807](https://github.com/libgit2/pygit2/pull/807)
- New `Repository.descendant_of` and `Repository.branches.with_commit`
[815](https://github.com/libgit2/pygit2/issues/815)
[816](https://github.com/libgit2/pygit2/pull/816)
- Fix repository initialization in `clone_repository(...)`
[818](https://github.com/libgit2/pygit2/issues/818)
- Fix several warnings and errors, commits
[cd896ddc](https://github.com/libgit2/pygit2/commit/cd896ddc) and
[dfa536a3](https://github.com/libgit2/pygit2/commit/dfa536a3)
- Documentation fixes and improvements
[805](https://github.com/libgit2/pygit2/pull/805)
[808](https://github.com/libgit2/pygit2/pull/808)

Page 7 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.