diff --git a/src/env/node/git/localGitProvider.ts b/src/env/node/git/localGitProvider.ts index 4d3835b..a487e5f 100644 --- a/src/env/node/git/localGitProvider.ts +++ b/src/env/node/git/localGitProvider.ts @@ -5000,12 +5000,12 @@ export class LocalGitProvider implements GitProvider, Disposable { } @log() - async unStageFile(repoPath: string, pathOrUri: string | Uri): Promise { + async unstageFile(repoPath: string, pathOrUri: string | Uri): Promise { await this.git.reset(repoPath, typeof pathOrUri === 'string' ? pathOrUri : splitPath(pathOrUri, repoPath)[0]); } @log() - async unStageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise { + async unstageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise { await this.git.reset( repoPath, typeof directoryOrUri === 'string' ? directoryOrUri : splitPath(directoryOrUri, repoPath)[0], diff --git a/src/git/gitProvider.ts b/src/git/gitProvider.ts index 24909bc..83ee4b8 100644 --- a/src/git/gitProvider.ts +++ b/src/git/gitProvider.ts @@ -475,8 +475,8 @@ export interface GitProvider extends Disposable { stageFile(repoPath: string, pathOrUri: string | Uri): Promise; stageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise; - unStageFile(repoPath: string, pathOrUri: string | Uri): Promise; - unStageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise; + unstageFile(repoPath: string, pathOrUri: string | Uri): Promise; + unstageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise; stashApply?(repoPath: string, stashName: string, options?: { deleteAfter?: boolean | undefined }): Promise; stashDelete?(repoPath: string, stashName: string, ref?: string): Promise; diff --git a/src/git/gitProviderService.ts b/src/git/gitProviderService.ts index 097c09a..d764c11 100644 --- a/src/git/gitProviderService.ts +++ b/src/git/gitProviderService.ts @@ -2731,7 +2731,7 @@ export class GitProviderService implements Disposable { @log() unStageFile(repoPath: string | Uri, pathOrUri: string | Uri): Promise { const { provider, path } = this.getProvider(repoPath); - return provider.unStageFile(path, pathOrUri); + return provider.unstageFile(path, pathOrUri); } unStageDirectory(repoPath: string | Uri, directory: string): Promise; @@ -2739,7 +2739,7 @@ export class GitProviderService implements Disposable { @log() unStageDirectory(repoPath: string | Uri, directoryOrUri: string | Uri): Promise { const { provider, path } = this.getProvider(repoPath); - return provider.unStageDirectory(path, directoryOrUri); + return provider.unstageDirectory(path, directoryOrUri); } @log() diff --git a/src/plus/github/githubGitProvider.ts b/src/plus/github/githubGitProvider.ts index 3375bb7..2f6b43e 100644 --- a/src/plus/github/githubGitProvider.ts +++ b/src/plus/github/githubGitProvider.ts @@ -3124,10 +3124,10 @@ export class GitHubGitProvider implements GitProvider, Disposable { async stageDirectory(_repoPath: string, _directoryOrUri: string | Uri): Promise {} @log() - async unStageFile(_repoPath: string, _pathOrUri: string | Uri): Promise {} + async unstageFile(_repoPath: string, _pathOrUri: string | Uri): Promise {} @log() - async unStageDirectory(_repoPath: string, _directoryOrUri: string | Uri): Promise {} + async unstageDirectory(_repoPath: string, _directoryOrUri: string | Uri): Promise {} @gate() private async ensureRepositoryContext(