Skip to content

support character classes in gix::refspec::parse #2237

@nrdxp

Description

@nrdxp

Current behavior 😯

so I'm not sure if maybe I am not doing it right, but I know git servers support queries which can include wildcards and character classes as a sort of minimal subset of more complex regex.

As far as I can tell though, any attempt to actually query a remote with a character class fails, and it seems to be when I parse a string to a RefSpecRef via gix::refspec::parse. I get the error: "A reference must be a valid tag name as well"

Expected behavior 🤔

Ideally we should support any kinda of query a git server can support including character classes.

Git behavior

for example git ls-remote origin "refs/tags/v[0.9]* would return all tags that sorta look like a version

Steps to reproduce 🕹

Just include a character class in a call to the aforementioned parse function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgedan issue is accepted as shortcoming to be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions