Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix tree.walk() and add test#929

Merged
johnhaley81 merged 6 commits intomasternodegit/nodegit:masterfrom
tree-walk-fixnodegit/nodegit:tree-walk-fixCopy head branch name to clipboard
Mar 1, 2016
Merged

Fix tree.walk() and add test#929
johnhaley81 merged 6 commits intomasternodegit/nodegit:masterfrom
tree-walk-fixnodegit/nodegit:tree-walk-fixCopy head branch name to clipboard

Conversation

@jdgarcia
Copy link
Collaborator

Fix for #928

This is the non-api breaking change.
How does anyone feel about changing walk to return a promise (with a progress callback) instead of an event emitter? (ex: tree.walk().then(entries => ...))

John Haley added 3 commits March 1, 2016 09:57
Neither `[v for (v of set)]` nor `Array.from` work in Node 0.12 so we have to maintain our own list of entries instead of re-iterating through them to create the final array result.
johnhaley81 added a commit that referenced this pull request Mar 1, 2016
@johnhaley81 johnhaley81 merged commit 2caee3c into master Mar 1, 2016
@johnhaley81 johnhaley81 removed the ready label Mar 1, 2016
@johnhaley81 johnhaley81 deleted the tree-walk-fix branch March 1, 2016 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.