import { GlobalConfig } from "../../config/global.js";
import { isArray, isNumber, isString } from "@sindresorhus/is";
//#region lib/util/git/config.ts
let noVerify = ["push", "commit"];
function setNoVerify(value) {
	if (!isArray(value, isString)) throw new Error("config error: gitNoVerify should be an array of strings");
	noVerify = value;
}
function getNoVerify() {
	return noVerify;
}
function simpleGitConfig() {
	const config = {
		completion: {
			onClose: true,
			onExit: false
		},
		config: ["core.quotePath=false"]
	};
	const gitTimeout = GlobalConfig.get("gitTimeout");
	if (isNumber(gitTimeout) && gitTimeout > 0) config.timeout = { block: gitTimeout };
	return config;
}
//#endregion
export { getNoVerify, setNoVerify, simpleGitConfig };

//# sourceMappingURL=config.js.map