rebase: correct the return values for CurrentOperationIndex #396

Merged
carlosmn merged 1 commits from cmn/rebase-no-operation into master 2017-07-08 15:22:55 -05:00

1 Commits

Author SHA1 Message Date
Carlos Martín Nieto b98b0e7640 rebase: correct the return values for CurrentOperationIndex
We were incorectly reporting `C.GIT_REBASE_NO_OPERATION` as an error code when
it is none. We should instead return it as the value. The compiler doesn't seem
to actually look at the sizes so instead we must recreate the value ourselves
with `^uint(0)`.

The error return is kept for API compatibility but should go away eventually.
2017-07-08 21:34:10 +02:00