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

Method Push

plumbing/object/commitgraph/commitnode_walker_helper.go:58–60  ·  view source on GitHub ↗

Push pushes a new CommitNode to the heap

(c CommitNode)

Source from the content-addressed store, hash-verified

56
57// Push pushes a new CommitNode to the heap
58func (h *commitNodeHeap) Push(c CommitNode) {
59 h.Heap.Push(c)
60}
61
62// Pop removes top element on heap and returns it, or nil if heap is empty.
63// Second return parameter is true, unless the heap was empty and there was nothing to pop.

Callers 3

Calls 1

PushMethod · 0.65

Tested by

no test coverage detected