Next performs the next rebase operation and returns the information about it. If the operation is one that applies a patch (which is any operation except RebaseOperationExec) then the patch will be applied and the index and working directory will be updated with the changes. If there are conflicts,
()
| 379 | // then the patch will be applied and the index and working directory will be updated with the changes. |
| 380 | // If there are conflicts, you will need to address those before committing the changes. |
| 381 | func (rebase *Rebase) Next() (*RebaseOperation, error) { |
| 382 | runtime.LockOSThread() |
| 383 | defer runtime.UnlockOSThread() |
| 384 | |
| 385 | var ptr *C.git_rebase_operation |
| 386 | err := C.git_rebase_next(&ptr, rebase.ptr) |
| 387 | runtime.KeepAlive(rebase) |
| 388 | if err < 0 { |
| 389 | return nil, MakeGitError(err) |
| 390 | } |
| 391 | |
| 392 | return newRebaseOperationFromC(ptr), nil |
| 393 | } |
| 394 | |
| 395 | // InmemoryIndex gets the index produced by the last operation, which is the |
| 396 | // result of `Next()` and which will be committed by the next invocation of |
nothing calls this directly
no test coverage detected