MCPcopy
hub / github.com/Dimillian/CodexMonitor / buildGitStatusText

Function buildGitStatusText

src/features/app/hooks/useMainAppGitState.ts:61–68  ·  view source on GitHub ↗
(gitStatus: GitStatusSummary)

Source from the content-addressed store, hash-verified

59};
60
61function buildGitStatusText(gitStatus: GitStatusSummary) {
62 if (gitStatus.error) {
63 return "Git status unavailable";
64 }
65 return gitStatus.files.length > 0
66 ? `${gitStatus.files.length} file${gitStatus.files.length === 1 ? "" : "s"} changed`
67 : "Working tree clean";
68}
69
70function resolveShouldLoadGitHubPanelData({
71 gitPanelMode,

Callers 1

useMainAppGitStateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected