Skip to content

chrisdickinson/git-load-refs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

stream of git refs given a stream of paths and fs.Stats

Resources

Stars

Watchers

Forks

Packages

No packages published