| 42 | } |
| 43 | |
| 44 | Commit Rebase::commitToRebase() const { |
| 45 | git_rebase_operation *op = |
| 46 | git_rebase_operation_byindex(d.data(), currentIndex()); |
| 47 | if (!op) |
| 48 | return Commit(); |
| 49 | |
| 50 | git_commit *commit = nullptr; |
| 51 | git_commit_lookup(&commit, mRepo, &op->id); |
| 52 | return Commit(commit); |
| 53 | } |
| 54 | |
| 55 | Commit Rebase::next() const { |
| 56 | git_rebase_operation *op = nullptr; |
no test coverage detected