Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
stream of git refs given a stream of paths and fs.Stats
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
fs-shim.js
fs.js
index.js
package.json
test.js

README.md

git-load-refs

a stream to transform entries from ls-stream into objects representing references.

var ls = require('ls-stream')
  , refs = require('git-load-refs')

ls('.git')
  .pipe(refs('.git'))
  .on('data', function(entry) {
    console.log(entry)
  })

API (basically just data events)

{ 'symbolic': true | false
, 'ref': null | 'refname'
, 'hash': null | 'git hash'
, 'type': 'ref' | 'root-ref'
, 'name': 'ref name' }  

License

MIT

Something went wrong with that request. Please try again.