utils/rollup-plugins/lib/gitDescribe.js
function gitDescribe() {
  try {
    const reference = execSync(
      'git describe --always --dirty="-dev"',
    ).toString().trim();
    return reference;
  } catch (error) {
    /* eslint-disable-next-line no-console */ /* tslint:disable-next-line no-console */
    console.log(error);
  }
}
function gitDescribe() {
  try {
    const reference = execSync(
      'git describe --always --dirty="-dev"',
    ).toString().trim();
    return reference;
  } catch (error) {
    /* eslint-disable-next-line no-console */ /* tslint:disable-next-line no-console */
    console.log(error);
  }
}
function gitDescribe ( ) { try { const reference = execSync ( 'git describe --always --dirty="-dev"' , ) . toString ( ) . trim ( ) ; return reference ; } catch ( error ) { /* eslint-disable-next-line no-console */ /* tslint:disable-next-line no-console */ console . log ( error ) ; } }
Get the most recent git reference.
@see https://git-scm.com/docs/git-describe
@returns {(string|void)} A human readable git reference.
 /* eslint-disable-next-line consistent-return
Get the most recent git reference .