-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
Go get will sometimes fetch an individual commit so that it can get the snapshot of the files from it. In this case there's no need to fetch the entire git history. Dgit currently fetches all of the commits leading up to that commit incurring the costs of that in terms of disk space and time.
It would be a tremendous performance optimization if dgit would support the depth parameter and allow the shallow fetch of just that commit.
Since the commits would no longer be guaranteed to have all of their preceding commits there would need to be some additional checking for "grafted" commits in git log. Note that when there's a grafted commit the git log should show the keyword "grafted" in the list of ref names in brackets ().