MCPcopy Create free account
hub / github.com/git-bug/git-bug / FirstOp

Method FirstOp

entity/dag/entity.go:405–413  ·  view source on GitHub ↗

FirstOp lookup for the very first operation of the Entity

()

Source from the content-addressed store, hash-verified

403
404// FirstOp lookup for the very first operation of the Entity
405func (e *Entity) FirstOp() Operation {
406 for _, op := range e.ops {
407 return op
408 }
409 for _, op := range e.staging {
410 return op
411 }
412 return nil
413}
414
415// LastOp lookup for the very last operation of the Entity
416func (e *Entity) LastOp() Operation {

Callers 1

IdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected