git-command-helper
Version:
github command helper for nodejs
15 lines (12 loc) • 335 B
JavaScript
// 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 };