Drop argument repo from merge_base method

* Get repo from slot in git_commit

* Update documentation and add example
Add test case for merge_base method