Python 的 Git 開發包,Pygit2 0.22.1 發布
Pygit2是libgit2共享庫的一組Python綁定,libgit2是Git核心的實現。 Pygit2支持Python 2.7, 3.2, 3.3, 3.4 和 pypy。
Pygit2 0.22.1 發布,Pygit2 是 Python 的 Git 開發包,更新內容如下:不同接口重構#346(in progress):
-
新
</li>iter(pygit2.Blame)
-
新
</li>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]
</li> -
</li> </ul>DiffHunk.lines
是列表DiffLine
的對象,而不是元組新特性
-
New
</li>Repository.expand_id(...)
andRepository.ahead_behind(...)
#448 -
New
</li>prefix
parameter inRepository.write_archive
#481 -
New
</li>Repository.merge_trees(...)
#489 - </li>
- </li>
-
New
</li>Repository.merge_file_from_index(...)
#503 -
Now
</li>Repository.diff
supports diffing two blobs#508 -
New optional
</li>fetch
parameter inRemote.create
#526 - </li>
-
New
</li>Repository.get_attr(...)
#528 -
New
</li>level
optional parameter inIndex.remove
#533 -
New
</li> </ul>repr(TreeEntry)
#543構建和安裝改進:
-
Make pygit work in a frozen environment#453
</li> -
Make pygit2 work with pyinstaller#510
</li> </ul>Bugs 修復:
- </li>
- </li>
-
</li>Repository.write_archive
fix handling of symlinks#480 -
Fix type check in
</li>Diff[...]
#495 -
Fix error when merging files with unicode content#505
</li> </ul>其他:
-
Documentation 改進和修復 #448#491#497#507#517#518#519#521#523#527#536
</li> -
Expose the
</li> </ul> 下載:<a href="/misc/goto?guid=4958961617208051458" _src="</a>。pygit2.GIT_REPOSITORY_INIT_*
constants#483本文由用戶 cebp 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!
-
-
-