Skip to content

Commit 53fb4fb

Browse files
committed
Updated to 0.0.3
1 parent 9539dfc commit 53fb4fb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
</section>
3434

3535
<div class="description">
36-
<span class="version">Version 0.0.2</span> Node.js libgit2 asynchronous native bindings
36+
<span class="version">Version 0.0.3</span> Node.js libgit2 asynchronous native bindings
3737
</div>
3838

3939
<p>A collection of non-blocking Node.js libgit2 bindings, raw api, convenience api, unit tests, documentation and accomodations to make contributing easier.</p>
@@ -49,7 +49,7 @@ <h2>require</h2>
4949

5050
<h2>install</h2>
5151
<p>
52-
<pre class="command">sudo npm install nodegit</pre>
52+
<pre class="command">npm install nodegit</pre>
5353
</p>
5454

5555
<h2>use</h2>
@@ -65,7 +65,7 @@ <h2>use</h2>
6565
repo.branch( 'master', function( err, branch ) {
6666
if( err ) { throw err; }
6767
// Iterate over the revision history
68-
branch.history.each( function( i, commit ) {
68+
branch.history().on( 'commit', function( commit ) {
6969
// Print out `git log` emulation
7070
console.log( 'commit ' + commit.sha );
7171
console.log( commit.author.name + '<' + commit.author.email + '>' );
@@ -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().each( function( i, entry ) {
94+
branch.tree().on( 'entry', function( entry ) {
9595
console.log( entry.name );
9696
console.log( entry.content );
9797
});

0 commit comments

Comments
 (0)