pass in branch to get commit list