MCPcopy Create free account
hub / github.com/libgit2/git2go / OperationAt

Method OperationAt

rebase.go:347–351  ·  view source on GitHub ↗

OperationAt gets the rebase operation specified by the given index.

(index uint)

Source from the content-addressed store, hash-verified

345
346// OperationAt gets the rebase operation specified by the given index.
347func (rebase *Rebase) OperationAt(index uint) *RebaseOperation {
348 operation := C.git_rebase_operation_byindex(rebase.ptr, C.size_t(index))
349
350 return newRebaseOperationFromC(operation)
351}
352
353// CurrentOperationIndex gets the index of the rebase operation that is
354// currently being applied. There is also an error returned for API

Callers 1

performRebaseOntoFunction · 0.80

Calls 1

newRebaseOperationFromCFunction · 0.85

Tested by 1

performRebaseOntoFunction · 0.64