LibGit2Sharp , , :
using (var repo = new Repository("path/to/a/repository"))
{
repo.Index.Stage("path/to/file1");
repo.Index.Stage("path/to/file2");
repo.Commit("This is my commit", ....);
}
- : .
Stage() . Commit() index .
v0.9, LibGit2Sharp Commits Stage(). , .
Commits, API ObjectDatabase, Blobs Trees. ObjectDatabaseFixture.
obect?
Commit , . API , .
git add git commit?
... . ;-) :
- Blobs / Commit
working directory -> index -> odb, . API, Blobs Trees , , Commit.- API , Commit,
- Git - - , . API , .
, repo.Index.Stage, repo.Commit. , , ?
, , .