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

Method CurrentOperationIndex

rebase.go:356–368  ·  view source on GitHub ↗

CurrentOperationIndex gets the index of the rebase operation that is currently being applied. There is also an error returned for API compatibility.

()

Source from the content-addressed store, hash-verified

354// currently being applied. There is also an error returned for API
355// compatibility.
356func (rebase *Rebase) CurrentOperationIndex() (uint, error) {
357 runtime.LockOSThread()
358 defer runtime.UnlockOSThread()
359
360 var err error
361 operationIndex := uint(C.git_rebase_operation_current(rebase.ptr))
362 runtime.KeepAlive(rebase)
363 if operationIndex == RebaseNoOperation {
364 err = ErrRebaseNoOperation
365 }
366
367 return uint(operationIndex), err
368}
369
370// OperationCount gets the count of rebase operations that are to be applied.
371func (rebase *Rebase) OperationCount() uint {

Callers 1

performRebaseOntoFunction · 0.80

Calls

no outgoing calls

Tested by 1

performRebaseOntoFunction · 0.64