MCPcopy
hub / github.com/claude-code-best/claude-code / shouldIncludeGitInstructions

Function shouldIncludeGitInstructions

src/utils/gitSettings.ts:13–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11import { getInitialSettings } from './settings/settings.js'
12
13export function shouldIncludeGitInstructions(): boolean {
14 const envVal = process.env.CLAUDE_CODE_DISABLE_GIT_INSTRUCTIONS
15 if (isEnvTruthy(envVal)) return false
16 if (isEnvDefinedFalsy(envVal)) return true
17 return getInitialSettings().includeGitInstructions ?? true
18}

Callers 2

context.tsFile · 0.85

Calls 3

isEnvDefinedFalsyFunction · 0.85
isEnvTruthyFunction · 0.70
getInitialSettingsFunction · 0.50

Tested by

no test coverage detected