docs: function git(format, options, callback) {
      var joined = path.join(options.repo, '.git');
  
      if (!fs.existsSync(joined)) {
          callback(new Error('No .git folder detected in the directory \'' + options.repo + '\''), null);
          return;
      }
  
      var stdout = '';
      var stderr = '';
      var child = spawn(options.git, ['--git-dir=' + joined, 'log', '--pretty=' + format, '-1'], {cwd: process.cwd()});
  
      child.stdout.setEncoding('utf8');
      child.stdout.on('data', function (data) {
          stdout += data;
      });
  
      child.stderr.setEncoding('utf8');
      child.stderr.on('data', function (data) {
          stderr += data;
      });
  
      child.on('close', function() {
          if (stderr.length > 0) {
              callback(new Error('An error occurred: \'' + stderr + '\''), null);
          } else {
              var normalized = stdout.replace(/(?:\r\n|\r|\n)/g, '');
              callback(null, normalized);
          }
      });
  }