UNPKG

git-diff-apply

Version:

Use an unrelated remote repository to apply a git diff

9 lines (6 loc) 209 B
'use strict'; const { spawn } = require('./run'); module.exports = async function getRootDir(options) { let root = (await spawn('git', ['rev-parse', '--show-toplevel'], options)).trim(); return root; };