gitteh-log

0.3.1 • Public • Published

gitteh-log

git = require 'gitteh-promisified'
log = require 'gitteh-log'
{produced} = require 'reduced'

git.openRepository('.git')
  .then (repo) ->
    repo.reference('refs/heads/master')
  .then (ref) ->
    # this function returns a lazy sequence of commits
    # apply produced(seq) to force its evaluation
    seq = log(ref)
    produced(seq)
  .then (commits) ->
    console.log commits

Readme

Keywords

none

Package Sidebar

Install

npm i gitteh-log

Weekly Downloads

1

Version

0.3.1

License

MIT

Last publish

Collaborators

  • andreypopp