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

Function entryExists

rebase_test.go:558–568  ·  view source on GitHub ↗
(repo *Repository, file string)

Source from the content-addressed store, hash-verified

556}
557
558func entryExists(repo *Repository, file string) bool {
559 headTree, err := headTree(repo)
560 if err != nil {
561 return false
562 }
563 defer headTree.Free()
564
565 _, err = headTree.EntryByPath(file)
566
567 return err == nil
568}
569
570func commitMsgsList(repo *Repository) ([]string, error) {
571 head, err := headCommit(repo)

Callers 1

setupRepoForRebaseFunction · 0.85

Calls 3

headTreeFunction · 0.85
FreeMethod · 0.65
EntryByPathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…