CurrentOperationIndex gets the index of the rebase operation that is currently being applied. There is also an error returned for API compatibility.
()
| 354 | // currently being applied. There is also an error returned for API |
| 355 | // compatibility. |
| 356 | func (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. |
| 371 | func (rebase *Rebase) OperationCount() uint { |
no outgoing calls