1. XenForo 1.5.14 中文版——支持中文搜索!现已发布!查看详情
  2. Xenforo 爱好者讨论群:215909318 XenForo专区

新闻 Pygit2 0.22.1 发布,Python 的 Git 开发包 下载

本帖由 漂亮的石头2015-07-13 发布。版面名称:软件资讯

  1. 漂亮的石头

    漂亮的石头 版主 管理成员

    注册:
    2012-02-10
    帖子:
    487,318
    赞:
    47
    Pygit2 0.22.1 发布,Pygit2 是 Python 的 Git 开发包,更新内容如下:

    不同接口重构#346(in progress):


    • 新 iter(pygit2.Blame)


    • 新 pygit2.DiffDelta, pygit2.DiffFile 和 pygit.DiffLine


    • API 改进和翻译提供:

      Hunk => DiffHunk
      Patch.old_file_path => Patch.delta.old_file.path
      Patch.new_file_path => Patch.delta.new_file.path
      Patch.old_id => Patch.delta.old_file.id
      Patch.new_id => Patch.delta.new_file.id
      Patch.status => Patch.delta.status
      Patch.similarity => Patch.delta.similarity
      Patch.is_binary => Patch.delta.is_binary
      Patch.additions => Patch.line_stats[1]
      Patch.deletions => Patch.line_stats[2]

    • DiffHunk.lines 是列表 DiffLine 的对象,而不是元组

    新特性


    • New Repository.expand_id(...) and Repository.ahead_behind(...)#448


    • New prefix parameter in Repository.write_archive#481


    • New Repository.merge_trees(...)#489


    • New Repository.cherrypick(...)#436#492


    • New support for submodules#499#514


    • New Repository.merge_file_from_index(...)#503


    • Now Repository.diff supports diffing two blobs#508


    • New optional fetch parameter in Remote.create#526


    • New pygit2.DiffStats#406#525


    • New Repository.get_attr(...)#528


    • New level optional parameter in Index.remove#533


    • New repr(TreeEntry)#543

    构建和安装改进:


    • Make pygit work in a frozen environment#453


    • Make pygit2 work with pyinstaller#510

    Bugs 修复:


    • Fix memory issues#477#487#520


    • Fix TreeEntry equality testing#458#488


    • Repository.write_archive fix handling of symlinks#480


    • Fix type check in Diff[...]#495


    • Fix error when merging files with unicode content#505

    其他:


    下载:https://github.com/libgit2/pygit2/archive/v0.22.1.zip
    Pygit2 0.22.1 发布,Python 的 Git 开发包下载地址
     
正在加载...