-
Notifications
You must be signed in to change notification settings - Fork 11
Question about IPLD Git URLs #23
Comments
This repo implements git at the object level (everything that lives in https://github.com/ipfs-shipyard/git-remote-ipld takes care of branches by wrapping repositories in a unixfs tree with structure like If you want, there is a snapshot of go-ipfs pushed at QmU1HJJDFSM8JJq4r31wSLfj51oysQCswz7aL78UWZHuMC, you can play with it using Some examples:
|
Ah okay. Let me see if I understand? IPLD isn't a URL format, it's a JSON format. That makes sense, because it's describing linked data. To put it in graph terminology, IPLD describes "nodes" and the "edges" are links. And similar to git itself, IPFS treats locating objects locally as a separate concern from locating repositories globally. The former is done with this library and the latter is handled by Kind of like how URLs are split into the "domain name" portion which identifies the server and the "path" portion that identifies a file on that server? The thing that annoys me is that branch names can contain ' My goal is to come up with a way to specify an individual file for use in (say) an |
Hi! Lead author of isomorphic-git here. In preparation for Chrome whitelisting of ipfs and git schemas in registerProtocolHandler (Firefox already has I believe) I'm investigating how git URLs handle paths to trees and blobs. AFAICT git uses URLs to identify repos but doesn't specify a standard URL format for identifying branches and blobs inside repos. npm uses a # sign after the repo url to identify a branch or SHA1. How are you handling this in IPFS? What's a fully qualified git IPLD reference to a blob look like? If git doesn't have a native way to do it, I'd rather be compatible with IPLD than make up a convention.
Secondly, the parsers and serializers look similar to the ones I wrote for isomorphic-git; we should compare notes sometime! Maybe we can consolidate the parsers and serializers into standalone modules that others can use?
The text was updated successfully, but these errors were encountered: