File: day_262__ipfs.mdwn

package info (click to toggle)
git-annex 8.20210223-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 68,764 kB
  • sloc: haskell: 70,359; javascript: 9,103; sh: 1,304; makefile: 212; perl: 136; ansic: 44
file content (16 lines) | stat: -rw-r--r-- 747 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Did a deep dive into [ipfs](http://ipfs.io/) last night. It has great
promise.

As a first step toward using it with git-annex, I built an experimental
[[ipfs_special_remote|special_remotes/ipfs]]. It has some nice abilities;
any ipfs address can be downloaded to a file in the repository:

	git annex addurl ipfs:QmYgXEfjsLbPvVKrrD4Hf6QvXYRPRjH5XFGajDqtxBnD4W --file somefile

And, any file in the git-annex repository can be published to the world
via ipfs, by simply using `git annex copy --to ipfs`. The ipfs address
for the file is then visible in `git annex whereis`.

Had to extend the external special remote protocol slightly for that, so
that ipfs addresses can be recorded as uris in git-annex, and will show up
in `git annex whereis`.