* Get current state synchronously (cached).
(repositoryPath: string)
| 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. |
no test coverage detected