libgit2 v0.21.3 发布,此版本是个维护版本,现已提供下载。
此版本包括一个关键的安全问题修复,强烈建议所有用户都更新!
e476e7b index tests: test capitalization before mkdir
90fad07 Plug leaks
188ca62 Create miscapitialised dirs for case-sensitive filesystems
88c8abf Bump version to 0.21.3
2b37e33 Introduce core.protectHFS and core.protectNTFS
581368f path: Use UTF8 iteration for HFS chars
4320180 checkout: disallow bad paths on HFS
8e7a957 reference_create: validate loose names
9686c6b checkout: disallow bad paths on win32
12db885 index: Check for valid paths before creating an index entry
928429c tree: Check for .git
with case insensitivy
09361df win32: use NT-prefixed "\?\" paths
b5ee184 clar: wide character comparisons
c7e785b tests: use p_ instead of posix func directly
libgit2 是一个可移植、纯C语言实现的 Git 核心开发包,你可以使用它来编写自定义的 Git 应用。
libgit2已被广泛应用在许多应用程序上,包括GitHub网站,还被应用在Plastic SCM和强大的微软Visual Studio工具箱。
主要功能:
SHA转换、格式化和缩略词
抽象的ODB后端系统
提交、标签、树和BLOB解析、编辑、blob解析和回写
树遍历
revision walking
索引文件(临时区域)操作
引用管理(包括包引用)
配置文件管理
高级仓库管理
线程安全和可重入
错误信息描述非常详细
更多(超过175个不同的API调用)