source:
trip-planner-front/node_modules/@npmcli/git/lib/is-clean.js@
6a3a178
Last change on this file since 6a3a178 was 6a3a178, checked in by , 3 years ago | |
---|---|
|
|
File size: 222 bytes |
Rev | Line | |
---|---|---|
[6a3a178] | 1 | const spawn = require('./spawn.js') |
2 | ||
3 | module.exports = (opts = {}) => | |
4 | spawn(['status', '--porcelain=v1', '-uno'], opts) | |
5 | .then(res => !res.stdout.trim().split(/\r?\n+/) | |
6 | .map(l => l.trim()).filter(l => l).length) |
Note:
See TracBrowser
for help on using the repository browser.