pygit2 1.0.0 发布了。pygit2 是一组 libgit2 共享库的 Python 绑定,libgit2 是 Git 核心方法的纯 C 实现,作为具有可靠 API 的可链接库提供,允许在应用程序中构建 Git 功能。
此版本主要变更内容包括:
Branch.raw_branch_name
。Index.remove_all()
。Remote.ls_remotes(..)
。Repository.lookup_reference_dwim(..)
与 Repository.resolve_refish(..)
。Repository.odb
返回新的 Odb
类型实例。新增 OdbBackend
类型。Repository.references.compress()
。详情查看更新日志:
https://github.com/libgit2/pygit2/blob/master/CHANGELOG.rst
(文/开源中国)