MCPcopy Index your code
hub / github.com/codeaashu/claude-code / fileHistoryEnabled

Function fileHistoryEnabled

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

Source from the content-addressed store, hash-verified

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

Callers 15

submitMessageMethod · 0.85
callFunction · 0.85
callFunction · 0.85
callFunction · 0.85
applySedEditFunction · 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.85

Tested by

no test coverage detected