Skip to content

surf: convert to git-ref-format #15

@FintanH

Description

@FintanH

radicle-surf, historically, defined its own domain of reference types. This has, historically, caused some headaches for converting from surf types into radicle-link types. Now that git-ref-format is available to surf, we should plan out the conversion of the API to use those types instead.

  • Look at the current API and where it uses reference types
  • Plan out a migration path based on the above

Some things to consider:

  • Whether the input should always be Qualified, ie. have a category like refs/heads, refs/tags, refs/remotes
  • If we should do any newtype'ing to distinguish qualified refs, e.g. pub struct Tag(Qualified), with smart constructors
  • Are namespaces important anymore if we go down the protocol route of having a single repo per project? Thus, keep namespaces in the API but can de-prioritise the implementation of them

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions