From aade7ef343e21e44ef0b7782bf1ea21a3a7c25e4 Mon Sep 17 00:00:00 2001 From: Eric Amodio Date: Tue, 19 Sep 2023 17:14:28 -0400 Subject: [PATCH] Renames unStage to unstage (more) --- src/git/gitProviderService.ts | 12 ++++++------ src/views/viewCommands.ts | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/git/gitProviderService.ts b/src/git/gitProviderService.ts index d764c11..dd31ee7 100644 --- a/src/git/gitProviderService.ts +++ b/src/git/gitProviderService.ts @@ -2726,18 +2726,18 @@ export class GitProviderService implements Disposable { return provider.stageDirectory(path, directoryOrUri); } - unStageFile(repoPath: string | Uri, path: string): Promise; - unStageFile(repoPath: string | Uri, uri: Uri): Promise; + unstageFile(repoPath: string | Uri, path: string): Promise; + unstageFile(repoPath: string | Uri, uri: Uri): Promise; @log() - unStageFile(repoPath: string | Uri, pathOrUri: string | Uri): Promise { + unstageFile(repoPath: string | Uri, pathOrUri: string | Uri): Promise { const { provider, path } = this.getProvider(repoPath); return provider.unstageFile(path, pathOrUri); } - unStageDirectory(repoPath: string | Uri, directory: string): Promise; - unStageDirectory(repoPath: string | Uri, uri: Uri): Promise; + unstageDirectory(repoPath: string | Uri, directory: string): Promise; + unstageDirectory(repoPath: string | Uri, uri: Uri): Promise; @log() - unStageDirectory(repoPath: string | Uri, directoryOrUri: string | Uri): Promise { + unstageDirectory(repoPath: string | Uri, directoryOrUri: string | Uri): Promise { const { provider, path } = this.getProvider(repoPath); return provider.unstageDirectory(path, directoryOrUri); } diff --git a/src/views/viewCommands.ts b/src/views/viewCommands.ts index 4f93e5c..2fd1b48 100644 --- a/src/views/viewCommands.ts +++ b/src/views/viewCommands.ts @@ -872,7 +872,7 @@ export class ViewCommands { return; } - await this.container.git.unStageFile(node.repoPath, node.file.path); + await this.container.git.unstageFile(node.repoPath, node.file.path); void node.triggerChange(); } @@ -880,7 +880,7 @@ export class ViewCommands { private async unstageDirectory(node: FolderNode) { if (!(node instanceof FolderNode) || !node.relativePath) return; - await this.container.git.unStageDirectory(node.repoPath, node.relativePath); + await this.container.git.unstageDirectory(node.repoPath, node.relativePath); void node.triggerChange(); }