UNPKG

git-command-helper

Version:
17 lines (13 loc) 365 B
// git-command-helper 2.1.0 by Dimas Lanjaka <dimaslanjaka@gmail.com> (https://www.webmanajemen.com) 'use strict'; 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;