Get merge_result's index.

Add git_merge_result_get_index.
Please review, thx.