Reducing the number of works when downloading commit history