Add support for enumerating commits in history