◐ Shell
reader mode source ↗
Skip to content
Open
Changes from all commits
File filter
Conversations
Jump to
Diff view
Apply and reload
Show whitespace
Diff view
Apply and reload
5 changes: 4 additions & 1 deletion api/tree/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ Return the path of this tree, like `/lib/foo/bar`
## <a name="walk"></a><span>Tree#</span>walk <span class="tags"><span class="sync">Sync</span></span>

```js
var eventEmitter = tree.walk([blobsOnly);

eventEmitter.on('entry', function(tree) {
// Use tree
Expand All @@ -347,6 +347,9 @@ eventEmitter.on('end', function(trees) {
eventEmitter.on('error', function(error) {
// Use error
});
```

Recursively walk the tree in breadth-first order. Fires an event for each
Expand Down
Toggle all file notes Toggle all file annotations