MCPcopy
hub / github.com/desktop/desktop / get

Method get

app/src/lib/stores/git-store-cache.ts:26–37  ·  view source on GitHub ↗
(repository: Repository)

Source from the content-addressed store, hash-verified

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}

Callers 15

deserializeFunction · 0.45
validateResolutionPathsFunction · 0.45
reassembleResolutionsFunction · 0.45
pushPullRequestFunction · 0.45
findCommitByRefFunction · 0.45
getResolvedFilesFunction · 0.45
getConflictedFilesFunction · 0.45
scanForEmojiMethod · 0.45
getThankYouByUserFunction · 0.45

Calls 4

onDidUpdateMethod · 0.80
onGitStoreUpdatedMethod · 0.80
onDidErrorMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected