kubo/core
Juan Batiz-Benet 978c9fa16f cmds/add: use dagutils.Editor, like patch
This changes the pin behavior. It uses the filenames given through
the api, and allows files to be streamed faltly (not a hierarchy),
which is easier for other things (like vinyl in node-ipfs-api land).
Files can also be entirely out of order, and the garbage intermediate
directories will not be pinned (gc-ed later).

The changes also mean the output of add has changed slightly-- it
no longer shows the local path added, but rather the dag path
relative to the added roots. This is a small difference, but changes
tests.

The dagutils.Editor creates a lot of chaff (intermediate objects)
along the way. Wonder how we might minimize the writes to the
datastore...

This commit also removes the "NilRepo()" part of the --only-hash
mode. We need to store at least in an in-mem repo/datastore because
otherwise the dagutils.Editor breaks.

License: MIT
Signed-off-by: Juan Batiz-Benet <juan@benet.ai>
2015-08-12 08:24:06 +02:00
..
commands cmds/add: use dagutils.Editor, like patch 2015-08-12 08:24:06 +02:00
corehttp use rabin fingerprinting for a chunker 2015-08-08 15:33:10 -07:00
corenet Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
corerepo make offline commands respect timeout 2015-07-20 14:34:16 -07:00
corerouting Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
coreunix cmds/add: use dagutils.Editor, like patch 2015-08-12 08:24:06 +02:00
mock core/mock: make sure node has a ctx and proc 2015-07-28 23:35:50 -07:00
.gitignore ignore testdb 2014-07-05 15:04:04 -07:00
bootstrap_test.go Reorged imports from jbenet/go-ipfs to ipfs/go-ipfs 2015-03-31 12:52:25 -07:00
bootstrap.go core: bugfix: bootstrap random permutation 2015-04-20 06:00:42 -07:00
builder.go add option to only hash input 2015-06-22 15:21:53 -07:00
core_test.go Run 'gofmt -s -w' on these files 2015-05-19 06:11:15 +07:00
core.go fuse unmount fixes 2015-07-29 01:36:50 -07:00
pathresolver_test.go Add test to detect invalid path 2015-07-04 02:50:15 +07:00
pathresolver.go Named error for no components 2015-05-22 09:18:49 -07:00