MCPcopy Create free account
hub / github.com/Murmele/Gittyup / writeTree

Method writeTree

src/git/Index.cpp:321–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319void Index::read() { git_index_read(d->index, false); }
320
321Tree Index::writeTree() const {
322 // Write the index tree.
323 git_oid id;
324 if (git_index_write_tree(&id, d->index))
325 return Tree();
326
327 git_tree *tree = nullptr;
328 git_repository *repo = git_index_owner(d->index);
329 git_tree_lookup(&tree, repo, &id);
330 return Tree(tree);
331}
332
333bool Index::hasConflicts() const { return git_index_has_conflicts(d->index); }
334

Callers 3

amendMethod · 0.80
commitMethod · 0.80
treeMethod · 0.80

Calls 1

TreeClass · 0.70

Tested by

no test coverage detected