Skip to content

Instantly share code, notes, and snippets.

@booo
Created September 3, 2011 09:56
Show Gist options
  • Select an option

  • Save booo/1190940 to your computer and use it in GitHub Desktop.

Select an option

Save booo/1190940 to your computer and use it in GitHub Desktop.
git = require "nodegit"
git.repo "../node-mapnik/.git", (error, repo) ->
if error then console.log error
else
repo.branch "master", (error, branch) ->
if error then console.log error
else
branch.tree().walk (i, entry) ->
console.log entry.name
console.log entry.content
console.log entry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment