Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
autoregister git object databases
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
index.js
package.json

README.md

git-autoregister-odb

given fs, dir, a method for finding objects by sha, and a list of potential backends, automatically load the backends that apply to this directory.

var odb = {}
  , fs = require('fs')
  , path = require('path')
  , autoregister = require('git-autoregister-odb')

var loose = require('git-odb-loose')
  , pack = require('git-odb-pack')

autoregister(fs, path.join(__dirname, '.git'), find, [
  loose, pack
], ready)

function ready(err, backends) {
  odb.backends = backends
}

function find(oid, ready) {
  //
}

API

autoregister(fs, directory, findSha, candidate list, ready)

License

MIT

Something went wrong with that request. Please try again.