Added a (possibly hacky) way to limit the number of commits that are returned from a branch.