libgit2 v0.24.0 發布,Git 核心開發包

jopen 8年前發布 | 13K 次閱讀

libgit2 v0.24.0 發布了,libgit2 是一個可移植、純C語言實現的 Git 核心開發包,你可以使用它來編寫自定義的 Git 應用。

libgit2已被廣泛應用在許多應用程序上,包括GitHub網站,還被應用在Plastic SCM和強大的微軟Visual Studio工具箱。

主要功能:

  • SHA轉換、格式化和縮略詞

  • 抽象的ODB后端系統

  • 提交、標簽、樹和BLOB解析、編輯、blob解析和回寫

  • 樹遍歷

  • revision walking

  • 索引文件(臨時區域)操作

  • 引用管理(包括包引用)

  • 配置文件管理

  • 高級倉庫管理

  • 線程安全和可重入

  • 錯誤信息描述非常詳細

  • 更多(超過175個不同的API調用)

目前,可以綁定到libgit2的語言有,并附上各個語言的綁定方法:

更新記錄如下:

  • Custom filters can now be registered with wildcard attributes, for
    example filter=*. Consumers should examine the attributes parameter
    of the check 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 the GIT_OPT_SET_USER_AGENT with git_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

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!