feat(git-master): add git_env_prefix config to prefix all git commands

When git-master skill is loaded, all git commands are prefixed with the configured env variable (default: GIT_MASTER=1). This enables custom git hooks to detect git-master skill usage. Set to empty string to disable.
This commit is contained in:
Jeon Suyeol
2026-03-06 11:35:52 +09:00
parent ee3d88af9d
commit 26c8d55b67
2 changed files with 68 additions and 18 deletions
+2
View File
@@ -5,6 +5,8 @@ export const GitMasterConfigSchema = z.object({
commit_footer: z.union([z.boolean(), z.string()]).default(true),
/** Add "Co-authored-by: Sisyphus" trailer to commit messages (default: true) */
include_co_authored_by: z.boolean().default(true),
/** Environment variable prefix for all git commands (default: "GIT_MASTER=1"). Set to "" to disable. Allows custom git hooks to detect git-master skill usage. */
git_env_prefix: z.string().default("GIT_MASTER=1"),
})
export type GitMasterConfig = z.infer<typeof GitMasterConfigSchema>