Created
September 2, 2011 22:07
-
-
Save booo/1190052 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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