/**
 * Shared git constants used across git-service and native-git-bridge.
 */
/**
 * Regex that matches valid git branch/ref name characters.
 * Extracted here to allow preferences-validation.js to validate branch names
 * without importing the full git-service module (which would create a cycle).
 */
export const VALID_BRANCH_NAME = /^[a-zA-Z0-9_\-/.]+$/;
/**
 * Environment overlay suppressing interactive git prompts, editors, and git-svn noise.
 * Set LC_ALL=C for English output so stderr string checks work across locales.
 */
export const GIT_NO_PROMPT_ENV = {
	...process.env,
	GIT_TERMINAL_PROMPT: "0",
	GIT_EDITOR: "true",
	GIT_SEQUENCE_EDITOR: "true",
	GIT_ASKPASS: "",
	VISUAL: "true",
	EDITOR: "true",
	GIT_SVN_ID: "",
	LC_ALL: "C", // force English git output so stderr string checks work on all locales (#1997)
};
