| .. | |||||
| clone.js | |||||
| errors.js | |||||
| find.js | |||||
| index.js | |||||
| is-clean.js | |||||
| is.js | |||||
| lines-to-revs.js | |||||
| make-error.js | |||||
| opts.js | |||||
| revs.js | |||||
| spawn.js | |||||
| utils.js | |||||
| which.js |
// not an airtight indicator, but a good gut-check to even bother trying
const { stat } = require('fs/promises')
module.exports = ({ cwd = process.cwd() } = {}) =>
stat(cwd + '/.git').then(() => true, () => false)
| .. | |||||
| clone.js | |||||
| errors.js | |||||
| find.js | |||||
| index.js | |||||
| is-clean.js | |||||
| is.js | |||||
| lines-to-revs.js | |||||
| make-error.js | |||||
| opts.js | |||||
| revs.js | |||||
| spawn.js | |||||
| utils.js | |||||
| which.js |