Added getNewCommits which also accepts a branch name which only gets commits from that branch (needs testing)