git ssb

0+

cel / pull-git-remote-helper



Tree: b057fe40960502a3d16c60aef0f67bf2078455fe

Files: b057fe40960502a3d16c60aef0f67bf2078455fe / README.md

3039 bytesRaw

pull-git-remote-helper

Make a git remote helper that integrates with git's internal objects.

Example

var toPull = require('stream-to-pull-stream')
var pull = require('pull-stream')
var gitRemoteHelper = require('pull-git-remote-helper')

var options = {
  refSource: pull.values([]),
  updateSink: pull.drain(console.error),
  wantSink: pull.drain(console.error),
  hasObject: function (hash, cb) { cb(false) },
  getObjects: /* ... /,
  objectSink: /* ... */
}

pull(
  toPull(process.stdin),
  gitRemoteHelper(options),
  toPull(process.stdout)
)

API

The streams in this module are pull-streams.

TODO

License

Fair License

Built with git-ssb-web