MCPcopy Create free account
hub / github.com/go-git/go-git / isParentHash

Function isParentHash

plumbing/object/commit_walker_path.go:137–144  ·  view source on GitHub ↗
(hash plumbing.Hash, commit *Commit)

Source from the content-addressed store, hash-verified

135}
136
137func isParentHash(hash plumbing.Hash, commit *Commit) bool {
138 for _, h := range commit.ParentHashes {
139 if h == hash {
140 return true
141 }
142 }
143 return false
144}
145
146func (c *commitPathIter) ForEach(cb func(*Commit) error) error {
147 for {

Callers 1

hasFileChangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…