git-objectify-pack

0.0.12 • Public • Published

git-objectify-pack

transform metadata objects emitted from git-list-pack into full-on git objects.

 
var fs = require('fs')
  , list = require('git-list-pack')
  , objectify = require('git-objectify-pack')
 
fs.createReadStream('path/to/packfile')
  .pipe(list())
  .pipe(objectify(find))
 
function find(oid, ready) {
  // for finding ref-delta objects that might
  // be outside of the current packfile
  return ready(null, referencedObject | null)
}
 

API

objectify(find) -> r/w stream of objects.

Create a r/w stream suitable for piping git-list-pack streams into.

Emits git objects with attached string hashes.

License

MIT

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.12
    1
    • latest

Version History

Package Sidebar

Install

npm i git-objectify-pack

Weekly Downloads

1

Version

0.0.12

License

MIT

Last publish

Collaborators

  • chrisdickinson