libgit2 v0.24.1 发布了,libgit2 是一个可移植、纯C语言实现的 Git 核心开发包,你可以使用它来编写自定义的 Git 应用。
libgit2已被广泛应用在许多应用程序上,包括GitHub网站,还被应用在Plastic SCM和强大的微软Visual Studio工具箱。
以下是一些值得关注的内容:
git_commit_create_buffer()
creates a commit and writes it into a user-provided buffer instead of writing it into the object db.git_blob_create_fromstream()
andgit_blob_create_fromstream_commit()
allow you to create a blob by writing into a stream. Useful when you do not know the final size or want to copy the contents from another stream.git_blob_create_fromchunks()
has been removed in favour ofgit_blob_create_fromstream()
.
下载地址: