MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / writeTree

Method writeTree

plugins/vcs/Index.cpp:22–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22std::shared_ptr<Tree> Index::writeTree(Repository& repository)
23{
24 git_oid treeOid;
25 auto error = git_index_write_tree(&treeOid, _index);
26 GitException::ThrowOnError(error);
27
28 git_tree* tree;
29 error = git_tree_lookup(&tree, repository._get(), &treeOid);
30 GitException::ThrowOnError(error);
31
32 return std::make_shared<Tree>(tree);
33}
34
35void Index::addAll()
36{

Callers 1

createCommitMethod · 0.80

Calls 1

_getMethod · 0.45

Tested by

no test coverage detected