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

Method Push

plumbing/object/commitgraph/commitnode_walker_helper.go:25–27  ·  view source on GitHub ↗

Push pushes a new CommitNode to the stack

(c CommitNode)

Source from the content-addressed store, hash-verified

23
24// Push pushes a new CommitNode to the stack
25func (l *commitNodeLifo) Push(c CommitNode) {
26 l.l = append(l.l, c)
27}
28
29// Pop pops the most recently added CommitNode from the stack
30func (l *commitNodeLifo) Pop() (CommitNode, bool) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected