Skip to content

Allow specifying a non-branch/non-tag ref for git dependencies #7230

@Nemo157

Description

@Nemo157

Describe the problem you are trying to solve
Adding a patch section referring to a reference that is not a branch or tag of the repository. For example refs/pull/<id>/head to refer to a pull request on Github.

Describe the solution you'd like
An additional ref key to go with branch, tag and rev that allows passing in a fully-qualified reference to lookup.

Notes
This may be slightly complicated as it appears that Cargo does a fetch of just refs/heads/*:refs/heads/* before looking up the specified branch locally. It might be better in any case to only fetch the requested ref from the remote to reduce traffic on repositories that have a large number of branches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-gitArea: anything dealing with gitC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions