1. 31 Aug, 2015 1 commit
  2. 23 Aug, 2015 1 commit
  3. 12 Aug, 2015 1 commit
    • Juan Batiz-Benet's avatar
      cmds/add: use dagutils.Editor, like patch · fa1d4fa2
      Juan Batiz-Benet authored
      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: default avatarJuan Batiz-Benet <juan@benet.ai>
      fa1d4fa2
  4. 02 Aug, 2015 1 commit
  5. 29 Jul, 2015 10 commits
  6. 28 Jul, 2015 5 commits
  7. 27 Jul, 2015 2 commits
  8. 26 Jul, 2015 3 commits
  9. 25 Jul, 2015 1 commit
  10. 24 Jul, 2015 2 commits
  11. 22 Jul, 2015 1 commit
  12. 21 Jul, 2015 2 commits
  13. 20 Jul, 2015 2 commits
  14. 09 Jul, 2015 1 commit
  15. 13 Jun, 2015 1 commit
    • W. Trevor King's avatar
      core/commands/unixfs/ls: Don't recurse into chunked files · 7b3973db
      W. Trevor King authored
      Folks operating at the Unix-filesystem level shouldn't care about that
      level of Merkle-DAG detail.  Before this commit we had:
      
        $ ipfs unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
        /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox:
        ... several lines of empty-string names ...
      
      And with this commit we have:
      
        $ ipfs unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
        /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
      
      I also reworked the argument-prefixing (object.Argument) in the output
      marshaller to avoid redundancies like:
      
        $ ipfs unixfs ls /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
        /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox:
        /ipfs/QmSRCHG21Sbqm3EJG9aEBo4vS7Fqu86pAjqf99MyCdNxZ4/busybox
      
      As a side-effect of this rework, we no longer have the trailing blank
      line that we used to have after the final directory listing.
      
      The new ErrImplementation is like Python's NotImplementedError, and is
      mostly a way to guard against external changes that would need
      associated updates in this code.  For example, once we see something
      that's neither a file nor a directory, we'll have to update the switch
      statement to handle those objects.
      
      License: MIT
      Signed-off-by: default avatarW. Trevor King <wking@tremily.us>
      7b3973db
  16. 26 May, 2015 1 commit
  17. 20 May, 2015 5 commits