Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Systematize ipfs-git parsing a bit #60

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

Ericson2314
Copy link
Member

Scaled back version of #58.

@Ericson2314 Ericson2314 changed the title WIP systematize ipfs-git parsing a bit WIP: systematize ipfs-git parsing a bit Jul 9, 2020
FixedOutputInfo,
IPFSInfo,
IPFSHash
> ContentAddressWithoutName;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should get a better name for this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming for these could be:

  • ContentAddress becomes StorePathDescriptor
  • ContentAddressWithoutName becomes ContentAddressWithReferences
  • LegacyContentAddress becomes ContentAddress

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like StorePathDescriptor

@Ericson2314 Ericson2314 changed the title WIP: systematize ipfs-git parsing a bit Systematize ipfs-git parsing a bit Jul 10, 2020
std::string_view tag;
{
auto optName = splitPrefixTo(rest, ':');
auto optTag = splitPrefixTo(rest, ':');
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect tag to before anything else

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well I wanted to keep the name and ca-with-refs separate. I like your idea of making it separate args, eventually.

@matthewbauer matthewbauer merged commit b3f0fc0 into ipfs-develop Jul 10, 2020
@Ericson2314 Ericson2314 deleted the git-ipfs-refs-parser-changes branch July 10, 2020 19:13
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.

2 participants