aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/is-clean.js
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/is-clean.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/is-clean.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/is-clean.js b/sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/is-clean.js
new file mode 100644
index 00000000..182373be
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/@npmcli/git/lib/is-clean.js
@@ -0,0 +1,6 @@
+const spawn = require('./spawn.js')
+
+module.exports = (opts = {}) =>
+ spawn(['status', '--porcelain=v1', '-uno'], opts)
+ .then(res => !res.stdout.trim().split(/\r?\n+/)
+ .map(l => l.trim()).filter(l => l).length)