Skip to content

Support for git fetch depth #217

@sirnewton01

Description

@sirnewton01

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 ().

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions