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

Function fileHistoryEnabled

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

Source from the content-addressed store, hash-verified

63 | undefined
64
65export function fileHistoryEnabled(): boolean {
66 if (getIsNonInteractiveSession()) {
67 return fileHistoryEnabledSdk()
68 }
69 return (
70 getGlobalConfig().fileCheckpointingEnabled !== false &&
71 !isEnvTruthy(process.env.CLAUDE_CODE_DISABLE_FILE_CHECKPOINTING)
72 )
73}
74
75function fileHistoryEnabledSdk(): boolean {
76 return (

Callers 15

callFunction · 0.85
callFunction · 0.85
callFunction · 0.85
applySedEditFunction · 0.85
submitMessageMethod · 0.85
MessageSelectorFunction · 0.85
fileHistoryTrackEditFunction · 0.85
fileHistoryMakeSnapshotFunction · 0.85
fileHistoryRewindFunction · 0.85
fileHistoryCanRestoreFunction · 0.85
fileHistoryGetDiffStatsFunction · 0.85
fileHistoryHasAnyChangesFunction · 0.85

Calls 4

fileHistoryEnabledSdkFunction · 0.85
getGlobalConfigFunction · 0.85
isEnvTruthyFunction · 0.70

Tested by

no test coverage detected