Skip to content

Commit ccc9817

Browse files
committed
updated tree example
1 parent 53fb4fb commit ccc9817

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ <h2>use</h2>
9191
repo.branch( 'master', function( err, branch ) {
9292
if( err ) { throw err; }
9393
// Iterate over the revision history
94-
branch.tree().on( 'entry', function( entry ) {
94+
branch.tree().walk(function( i, entry ) {
9595
console.log( entry.name );
9696
console.log( entry.content );
9797
});

0 commit comments

Comments
 (0)