resources/benchmark.js
function hashForRevision(revision) {
  const out = execSync(`git rev-parse "${revision}"`, { encoding: 'utf8' });
  const match = /[0-9a-f]{8,40}/.exec(out);
  if (!match) {
    throw new Error(`Bad results for revision ${revision}: ${out}`);
  }
  return match[0];
}
function hashForRevision(revision) {
  const out = execSync(`git rev-parse "${revision}"`, { encoding: 'utf8' });
  const match = /[0-9a-f]{8,40}/.exec(out);
  if (!match) {
    throw new Error(`Bad results for revision ${revision}: ${out}`);
  }
  return match[0];
}
function hashForRevision ( revision ) { const out = execSync ( ` ${ revision } ` , { encoding : 'utf8' } ) ; const match = / [0-9a-f]{8,40} / . exec ( out ) ; if ( ! match ) { throw new Error ( ` ${ revision } ${ out } ` ) ; } return match [ 0 ] ; }
Returns the complete git hash for a given git revision reference.
Returns the complete git hash for a given git revision reference .