MCPcopy Create free account
hub / github.com/GCWing/BitFun / useGitFileStatus

Function useGitFileStatus

src/web-ui/src/tools/git/hooks/useGitState.ts:279–291  ·  view source on GitHub ↗
(
  repositoryPath: string,
  options: { isActive?: boolean } = {}
)

Source from the content-addressed store, hash-verified

277 * Hook for file status only
278 */
279export function useGitFileStatus(
280 repositoryPath: string,
281 options: { isActive?: boolean } = {}
282) {
283 return useGitState({
284 repositoryPath,
285 isActive: options.isActive ?? true,
286 layers: ['basic', 'status'],
287 refreshOnMount: true,
288 refreshOnActive: true,
289 debugSource: 'use_git_file_status',
290 });
291}
292
293/** Hook for branch list. */
294export function useGitBranches(repositoryPath: string): {

Callers

nothing calls this directly

Calls 1

useGitStateFunction · 0.85

Tested by

no test coverage detected