MCPcopy Create free account
hub / github.com/agent-tower/core / useGitCommitFiles

Function useGitCommitFiles

packages/web/src/hooks/use-git.ts:80–89  ·  view source on GitHub ↗
(workingDir: string | undefined, hash: string | null)

Source from the content-addressed store, hash-verified

78 },
79 }),
80 enabled: !!workingDir && !!filePath,
81 refetchInterval: refreshInterval,
82 refetchIntervalInBackground: false,
83 refetchOnWindowFocus: refreshInterval ? 'always' : false,
84 refetchOnReconnect: refreshInterval ? 'always' : false,
85 })
86}
87
88export function useGitLog(workingDir: string | undefined) {
89 const visibleContext = useGitVisibilityStore((state) => state.visibleContext)
90 const refreshInterval = getGitHistoryRefreshInterval(workingDir, visibleContext)
91
92 return useQuery({

Callers 3

CommitFileListFunction · 0.90
ReviewViewFunction · 0.90
CommitItemFunction · 0.90

Calls 1

getMethod · 0.45

Tested by

no test coverage detected