(repository: Repository)
| 24 | } |
| 25 | |
| 26 | public get(repository: Repository): GitStore { |
| 27 | let gitStore = this.gitStores.get(repository.hash) |
| 28 | if (gitStore === undefined) { |
| 29 | gitStore = new GitStore(repository, this.shell, this.statsStore) |
| 30 | gitStore.onDidUpdate(() => this.onGitStoreUpdated(repository, gitStore!)) |
| 31 | gitStore.onDidError(error => this.onDidError(error)) |
| 32 | |
| 33 | this.gitStores.set(repository.hash, gitStore) |
| 34 | } |
| 35 | |
| 36 | return gitStore |
| 37 | } |
| 38 | } |
no test coverage detected