Modularised fetching of commits