libgit2 v0.21.2 维护版本发布,现已提供下载(https://github.com/libgit2/libgit2/archive/v0.21.2.tar.gz)。 此版本主要是修复了向后兼容的问题,是个维护版本,建议每位用户都升级!更新内容如下: 4af08d9 Bump version to 0.21.2 cc71348 global: clean up openssl_locks on shutdown cb93013 config test: clean up memory leak f4cb227 travis ci: build maint branches and development' 5595287 Fixed memory leak in git_tag_delete() 7881bab Patch from @carlosmn to refresh the parent config before snapshotting. 1ebb8e9 Change the length of the file so that the change is picked up. acbfce9 Add a test to make sure a new snapshot has the new value. 635ba11 is_empty_dir (wi32): cope with empty mount points b2fa95a p_lstat win32: don't canonicalize volume mounts 01a1be3 Don't copy buffer in checkout unless needed 46ef5a7 Ensure filters (i.e. CRLF) are applied when checking out conflict content 6e41c27 Introduce failing test for conflict filtering in index d055f4e repository_head_unborn: clear error when HEAD is unborn 5757c02 ssl: dump the SSL ciphers in favour of TLS 0571362 Silence unused return value warning c02c530 Ensure patch is initialized to zero, otherwise, the allocated flag may be set 6004658 Silence uninitialized warning b933465 Fixed odb foreach test failure for big-endian 64-bit 8a89bda Fixed merge REUC test for big-endian 64-bit e8b6f55 The raw index buffer content is not guaranteed to be aligned 55f72c1 Ensure pool data is aligned on an 8 byte boundary f975fe9 Introduce GIT_ALIGN 2f83bfc git_filter: dup the filter name 68fce7f config: Fix multiple trailing spaces before comments not completely trimmed a97157a When auto follow tags, FETCH_HEAD should list only newly followed tags e023545 global: free the error message when exiting a thread b593577 Correctly handle getaddrinfo return result ba5cef0 Recurse ignored directories when stashing 80ddaec Include git2/odb_backend.h in git2.h c12bc32 Remove local unused index_repo variable 9a8126e Only check for workdir conflicts if the index has merged files edb2b83 Added test case to illustrate bogus conflicts detected if no files were merged, and untracked c93d1eb ssh: store error message immediately after a failed agent call ebee4d5 pack: return the correct final offset b401dc9 git_remote_ls() should return an error if the transport is not available 7d729d0 http: make sure we can consume the data we request ea97190 config: a multiline var can start immediately 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 D:https://github.com/AndrejMitrovic/dlibgit Delphi:https://github.com/libgit2/GitForDelphi Erlang:https://github.com/carlosmn/geef Go:https://github.com/libgit2/git2go GObject:https://live.gnome.org/Libgit2-glib Haskell:https://github.com/fpco/gitlib Lua:https://github.com/libgit2/luagit2 .NET:https://github.com/libgit2/libgit2sharp、https://github.com/txdv/libgit2net Node.js:https://github.com/libgit2/node-gitteh nodegit:https://github.com/tbranyen/nodegit Objective-C:https://github.com/libgit2/objective-git OCaml:https://github.com/burdges/libgit2-ocaml Parrot Virtual Machine:https://github.com/letolabs/parrot-libgit2 Perl:https://github.com/ghedo/p5-Git-Raw PHP:https://github.com/libgit2/php-git Python:https://github.com/libgit2/pygit2 Ruby:https://github.com/libgit2/rugged Vala:https://github.com/apmasell/vapis/blob/master/libgit2.vapi libgit2 v0.21.2 维护版本发布,Git 开发包下载地址