Skip to content

Commit

Permalink
Gates getCurrentUser to avoid extra git calls
Browse files Browse the repository at this point in the history
  • Loading branch information
eamodio committed Nov 25, 2020
1 parent 8559ee3 commit 82ce0d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/git/gitService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1394,6 +1394,7 @@ export class GitService implements Disposable {
}

@log()
@gate()
async getCurrentUser(repoPath: string) {
let user = this._userMapCache.get(repoPath);
if (user != null) return user;
Expand Down

0 comments on commit 82ce0d0

Please sign in to comment.