src/git.js
/**
 * Checks whether there are differences from HEAD
 * @returns {boolean} - Boolean indicating whether changes exist
 */
Checks whether there are differences from HEAD
@returns {boolean} - Boolean indicating whether changes exist
Checks whether there are differences from HEAD @returns { boolean } - Boolean indicating whether changes exist
function hasChanges() {
	const res = run("git diff-index --quiet HEAD --", { ignoreErrors: true }).status === 1;
	log(`${res ? "Changes" : "No changes"} found with Git`);
	return res;
}
function hasChanges ( ) { const res = run ( "git diff-index --quiet HEAD --" , { ignoreErrors : true } ) . status === 1 ; log ( ` ${ res ? "Changes" : "No changes" } ` ) ; return res ; }
Checks whether there are differences from HEAD
 @returns {boolean} - Boolean indicating whether changes exist
Checks whether there are differences from HEAD @returns { boolean } - Boolean indicating whether changes exist