git-diff-apply
Advanced tools
Comparing version 0.19.8 to 0.19.9
{ | ||
"name": "git-diff-apply", | ||
"version": "0.19.8", | ||
"version": "0.19.9", | ||
"description": "Use an unrelated remote repository to apply a git diff", | ||
@@ -5,0 +5,0 @@ "main": "src", |
@@ -5,5 +5,5 @@ 'use strict'; | ||
module.exports = async function getSubDir() { | ||
module.exports = async function getRootDir() { | ||
let root = (await run('git rev-parse --show-toplevel')).trim(); | ||
return root; | ||
}; |
'use strict'; | ||
const path = require('path'); | ||
module.exports = function getSubDir(root) { | ||
let subDir = process.cwd().substr(root.length + 1); | ||
let subDir = path.relative(root, process.cwd()); | ||
return subDir; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19467
557