GitSharp.NET的Git开发包
GitSharp 是 .NET 框架和 MONO 实现的 Git,旨在完全兼容 Git,也可作为轻量级的开发库为那些需要 Git 特性的应用以及访问 Git 资料库。
示例代码:
//Opening an existing git repository
repo = new Repository("path/to/repo");
// Now suppose you have created some new files and want to commit them
repo.Index.Add("README", "License.txt");
Commit commit = repo.Commit("My first commit with gitsharp", new Author("henon", "meinrad.recheis@gmail.com"));
// Easy, isn't it? Now let's have a look at the changes of this commit:
foreach (Change change in commit.Changes)
Console.WriteLine(change.Name + " " + change.ChangeType);
//Get the staged changes from the index
repo.Status.Added.Contains("README");
//Access and manipulate the configuration
repo.Config["core.autocrlf"] = "false";
评论
GeefErlang的Git开发包
GeefisanexampleofanErlangNIFbindingtolibgit2.Abitoutofdate,butbasicallyworks.Bestasaproofofconceptof
GeefErlang的Git开发包
0
RuggedRuby的Git开发包
Rugged是一个Git的Ruby开发包,使用libgit2API安装方法:$ gem install rugged使用方法:require 'rugged'repo = Rugged::Reposi
RuggedRuby的Git开发包
0
GitPythonPython 的 Git 开发包
GitPython是一个Python库用来和Git资料库进行交互,提供各种级别的操作,例如高级的git-porcelain和低级的git-plumbing.GitPython提供了Git对象的抽象封装
GitPythonPython 的 Git 开发包
0
GitPythonPython 的 Git 开发包
GitPython 是一个 Python 库用来和 Git 资料库进行交互,提供各种级别的操作,例如
GitPythonPython 的 Git 开发包
0