[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/nodegit/nodegit/v0.0.75/example/readme-example.js [Back]  [Original]

var git = require( 'nodegit' );

git.repo( 'jquery/.git', function() {
  console.log( 'Repo opened' );

  this.branch( 'master', function() {
    console.log( 'Branch opened' );

    this.history().on( 'commit', function( i, commit ) {
      console.log( commit.id.toString(40) );
    });

  });
});

Web Proxy Viewer  |  New URL  |  Original Page