index.js
function git(cb) {
  which('git', function(err, data){
    if (err) return cb(err, data);
    
    child.exec('git rev-parse HEAD', cb);
  });
}
function git(cb) {
  which('git', function(err, data){
    if (err) return cb(err, data);
    
    child.exec('git rev-parse HEAD', cb);
  });
}
function git ( cb ) { which ( 'git' , function ( err , data ) { if ( err ) return cb ( err , data ) ; child . exec ( 'git rev-parse HEAD' , cb ) ; } ) ; }
Get the git sha of the current commit

@param {Function} cb
Get the git sha of the current commit