(
repositoryPath: string,
options: { isActive?: boolean } = {}
)
| 277 | * Hook for file status only |
| 278 | */ |
| 279 | export 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. */ |
| 294 | export function useGitBranches(repositoryPath: string): { |
nothing calls this directly
no test coverage detected