MCPcopy Index your code
hub / github.com/git-bug/git-bug / FirstOp

Method FirstOp

entities/bug/bug.go:143–148  ·  view source on GitHub ↗

FirstOp lookup for the very first operation of the bug. For a valid Bug, this operation should be a CreateOp

()

Source from the content-addressed store, hash-verified

141// FirstOp lookup for the very first operation of the bug.
142// For a valid Bug, this operation should be a CreateOp
143func (bug *Bug) FirstOp() Operation {
144 if fo := bug.Entity.FirstOp(); fo != nil {
145 return fo.(Operation)
146 }
147 return nil
148}
149
150// LastOp lookup for the very last operation of the bug.
151// For a valid Bug, should never be nil

Callers 1

ValidateMethod · 0.95

Calls 1

FirstOpMethod · 0.65

Tested by

no test coverage detected