MCPcopy Create free account
hub / github.com/libgit2/git2go / headTree

Function headTree

rebase_test.go:459–472  ·  view source on GitHub ↗
(repo *Repository)

Source from the content-addressed store, hash-verified

457}
458
459func headTree(repo *Repository) (*Tree, error) {
460 headCommit, err := headCommit(repo)
461 if err != nil {
462 return nil, err
463 }
464 defer headCommit.Free()
465
466 tree, err := headCommit.Tree()
467 if err != nil {
468 return nil, err
469 }
470
471 return tree, nil
472}
473
474func commitSomething(repo *Repository, something, content string, commitOpts commitOptions) (*Oid, error) {
475 headCommit, err := headCommit(repo)

Callers 1

entryExistsFunction · 0.85

Calls 3

headCommitFunction · 0.85
TreeMethod · 0.80
FreeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…