Thanks to visit codestin.com Credit goes to libgit2.org
Gets the rebase operation specified by the given index.
The in-progress rebase
The index of the rebase operation to retrieve
The rebase operation or NULL if idx was out of bounds
idx