git-command-helper
Version:
github command helper for nodejs
17 lines (13 loc) • 365 B
JavaScript
// git-command-helper 2.1.0 by Dimas Lanjaka <dimaslanjaka@gmail.com> (https://www.webmanajemen.com)
;
var status = require('./status.js');
/**
* check any files changed
* @param opt
*/
function gitHasChanges(opt) {
// git status --porcelain
const get = status.gitStatus(opt);
return get.length > 0;
}
exports.gitHasChanges = gitHasChanges;