Fixed a bug with the branches + bookmarks change

- Added the ability to override the amount of commits to be checked