git ssb

0+

cel / pull-git-pack



Branch:
cel committed 1.0.3Latest: b2812af on 5/15/2020, 7:08:07 PM
📄README.md
📄index.js
📁lib
📄package.json
📁test
README.md

pull-git-pack

Encode and decode git packfiles, with a pull-stream API

API

var pack = require('pull-git-pack')

pack.decode(opts, repo[, onEnd, read]): readObject

Transform packfile data into git objects. If read is not given, pack.decode returns a through stream.

pack.decodeWithIndex(repo, readPack, readIdx): readObject

Transform a packfile data into git objects, using pack index data to speed up the process.

pack.encode([opts, ]numObjects, readObject): read

Transform git objects into packfile data. If readObject is not given, pack.encode returns a through stream.

Index Pack

var indexPack = require('pull-git-pack/lib/index-pack')

indexPack(cb(err, idx, packfileFixed)) : sink

Build a pack index (.idx file) from a git pack file, as git-index-pack(1) would do.

License

Copyright (c) 2016, 2017, 2020 Charles Lehner

Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.

DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.

Built with git-ssb-web