Skip to content

Comments

Add revision param to git-resource get step#1

Open
dinofizz wants to merge 1 commit intomasterfrom
add-revision-support
Open

Add revision param to git-resource get step#1
dinofizz wants to merge 1 commit intomasterfrom
add-revision-support

Conversation

@dinofizz
Copy link

When revision: true is set, clone uses git clone --revision=<ref> to fetch only the history leading to the target commit, avoiding the branch-tip fetch and deepening loop. This is more efficient for large repos where the exact commit SHA is already known.

The param is incompatible with branch and will error if both are set. It can be combined with depth to further limit ancestry.

When `revision: true` is set, clone uses `git clone --revision=<ref>`
to fetch only the history leading to the target commit, avoiding the
branch-tip fetch and deepening loop. This is more efficient for large
repos where the exact commit SHA is already known.

The param is incompatible with `branch` and will error if both are set.
It can be combined with `depth` to further limit ancestry.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant