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

Function fileHistoryEnabledSdk

src/utils/fileHistory.ts:75–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

73}
74
75function fileHistoryEnabledSdk(): boolean {
76 return (
77 isEnvTruthy(process.env.CLAUDE_CODE_ENABLE_SDK_FILE_CHECKPOINTING) &&
78 !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING)
79 )
80}
81
82/**
83 * Tracks a file edit (and add) by creating a backup of its current contents (if necessary).

Callers 1

fileHistoryEnabledFunction · 0.85

Calls 1

isEnvTruthyFunction · 0.70

Tested by

no test coverage detected