-
Notifications
You must be signed in to change notification settings - Fork 30
git on IPFS (ipld-git) #45
Comments
There is also: https://github.com/larsks/git-remote-ipfs |
I'd like to also push the envelope on this. During my work on the helper, I wished for a an option in the commit object to just use an IPFS hash to point to the corresponding files instead of their tree objects. I don't think this is possible by just beeing an git-remote-helper. IIRC git-annex 'just' links additional data on ipfs by adding the hashes into the commit message? A ipfs-aware git could use multihashes everywhere and wouldn't need to repack files in their format. Having seen the kauderwelsch that is the git codebase and documentation, this idea already hurts... :-/ Maybe it's better if the helper just act as a tranformator - speaking and returning native git while storing commits and trees in a format more suited to what ipfs offers. |
Had to google that one |
No, i don't think git cares about non git objects
yes, git-annex tracks links (with digests too i think) but "off-repo".
:/ -- but take a look at #23 -- we can make our own VCS structures that can point to anything. And, not sure what's easier, but i think we may be able to reuse lots of the git tooling as it's purely shell scripts on top of others.
Yeah i think this is fine for the helper. |
My statement maybe came of a little too negative. I'm all for #23! I just don't want to fork all of git to be IPFS-aware right now. |
@magik6k mind sharing an update on IGiS and all your work with ipld-git here? :) |
Sure!
|
IGiS is a little slow unless you have the files cached in your local IPFS instance, so here's a quick demo video showing a couple of the features (51s): |
@dirkmc any idea what the root of the slowness is? if its anything perf related on go-ipfs i'd love to open an issue to bring things up to speed |
I'm pretty sure it's ipfs/kubo#5247 |
Crap. |
@whyrusleeping I remember you mentioning that bitswap will soon support graph queries rather than just individual blocks. Is that what Bitswap Sessions are about? Will graph queries be exposed to IPFS clients or only internally? I'm thinking for example of the case of asking IPFS for the last 20 commits on a branch. |
No, they're two separate things. Sessions allow us to remember which peers likely have content so we can ask them instead of repeatedly spamming the entire network. The next step with sessions is to ask for different pieces from different peers. Graph queries allow us to ask for pieces we don't yet know we want (i.e., children of node x). |
This could mean either:
The first one has been written https://github.com/cryptix/git-remote-ipfs (and in git-annex https://git-annex.branchable.com/special_remotes/ipfs/).
The second might already have an implementation via git-annex.
I favor this approach (replacing git's underneath to work with distributed large files, i.e. a distributed https://github.com/github/git-lfs) than to rewrite a different dag versioning interface as in #23.
The text was updated successfully, but these errors were encountered: