Skip to content

Instantly share code, notes, and snippets.

@booo
Created September 2, 2011 22:07
Show Gist options
  • Save booo/1190052 to your computer and use it in GitHub Desktop.
Save booo/1190052 to your computer and use it in GitHub Desktop.
git = require "nodegit"
git.repo "bla/.git", (error, repo) ->
if error then console.log error
else
repo.branch "master", (error, branch) ->
if error then console.log error
else
history = branch.history()
history.on "commit", (index, commit) ->
console.log commit #commit is undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment