add methods to fetch commits
remove unused variable, synthesized endSha
refactor, move logic that fetches commits into the Branch model