Implemented traverseCommits for CLI and Libgit2