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

Method getState

src/web-ui/src/tools/git/state/GitStateManager.ts:127–130  ·  view source on GitHub ↗

* Get current state synchronously (cached).

(repositoryPath: string)

Source from the content-addressed store, hash-verified

125 * Get current state synchronously (cached).
126 */
127 getState(repositoryPath: string): GitState | null {
128 const normalizedPath = this.normalizePath(repositoryPath);
129 return this.states.get(normalizedPath) || null;
130 }
131
132 /**
133 * Get state or create an initial one.

Callers 2

doRefreshMethod · 0.95
refreshDetailedMethod · 0.95

Calls 2

normalizePathMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected