libgit2 v0.24.0 發布,Git 核心開發包
libgit2 v0.24.0 發布了,libgit2 是一個可移植、純C語言實現的 Git 核心開發包,你可以使用它來編寫自定義的 Git 應用。
libgit2已被廣泛應用在許多應用程序上,包括GitHub網站,還被應用在Plastic SCM和強大的微軟Visual Studio工具箱。
主要功能:
SHA轉換、格式化和縮略詞
抽象的ODB后端系統
提交、標簽、樹和BLOB解析、編輯、blob解析和回寫
樹遍歷
revision walking
索引文件(臨時區域)操作
引用管理(包括包引用)
配置文件管理
高級倉庫管理
線程安全和可重入
錯誤信息描述非常詳細
更多(超過175個不同的API調用)
目前,可以綁定到libgit2的語言有,并附上各個語言的綁定方法:
C++:https://projects.kde.org/projects/playground/libs/libqgit2/
Chicken Scheme:https://wiki.call-cc.org/egg/git
Haskell:https://github.com/fpco/gitlib
.NET:https://github.com/libgit2/libgit2sharp、https://github.com/txdv/libgit2net
Objective-C:https://github.com/libgit2/objective-git
Parrot Virtual Machine:https://github.com/letolabs/parrot-libgit2
Vala:https://github.com/apmasell/vapis/blob/master/libgit2.vapi
更新記錄如下:
Custom filters can now be registered with wildcard attributes, for
examplefilter=*
. Consumers should examine the attributes parameter
of thecheck
function for details.Symlinks are now followed when locking a file, which can be
necessary when multiple worktrees share a base repository.You can now set your own user-agent to be sent for HTTP requests by
using theGIT_OPT_SET_USER_AGENT
withgit_libgit2_opts()
.You can set custom HTTP header fields to be sent along with requests
by passing them in the fetch and push options.Tree objects are now assumed to be sorted. If a tree is not
correctly formed, it will give bad results. This is the git approach
and cuts a significant amount of time when reading the trees.Filter registration is now protected against concurrent
registration.Filenames which are not valid on Windows in an index no longer cause
to fail to parse it on that OS.Rebases can now be performed purely in-memory, without touching the
repository's workdir.When adding objects to the index, or when creating new tree or commit
objects, the inputs are validated to ensure that the dependent objects
exist and are of the correct type. This object validation can be
disabled with the GIT_OPT_ENABLE_STRICT_OBJECT_CREATION option.The WinHTTP transport's handling of bad credentials now behaves like
the others, asking for credentials again.
下載地址:https://github.com/libgit2/libgit2/archive/master.zip
詳情請看:https://github.com/libgit2/libgit2
來自: http://www.oschina.net//news/71223/libgit2-v0-24-0