UNPKG

git-command-helper

Version:
15 lines (12 loc) 335 B
// git-command-helper 2.1.0 by Dimas Lanjaka <dimaslanjaka@gmail.com> (https://www.webmanajemen.com) import { gitStatus } from './status.mjs'; /** * check any files changed * @param opt */ function gitHasChanges(opt) { // git status --porcelain const get = gitStatus(opt); return get.length > 0; } export { gitHasChanges };