Kaynağa Gözat

Renames unStage to unstage

main
Eric Amodio 1 yıl önce
ebeveyn
işleme
05b2d3ba6c
4 değiştirilmiş dosya ile 8 ekleme ve 8 silme
  1. +2
    -2
      src/env/node/git/localGitProvider.ts
  2. +2
    -2
      src/git/gitProvider.ts
  3. +2
    -2
      src/git/gitProviderService.ts
  4. +2
    -2
      src/plus/github/githubGitProvider.ts

+ 2
- 2
src/env/node/git/localGitProvider.ts Dosyayı Görüntüle

@ -5000,12 +5000,12 @@ export class LocalGitProvider implements GitProvider, Disposable {
}
@log()
async unStageFile(repoPath: string, pathOrUri: string | Uri): Promise<void> {
async unstageFile(repoPath: string, pathOrUri: string | Uri): Promise<void> {
await this.git.reset(repoPath, typeof pathOrUri === 'string' ? pathOrUri : splitPath(pathOrUri, repoPath)[0]);
}
@log()
async unStageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise<void> {
async unstageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise<void> {
await this.git.reset(
repoPath,
typeof directoryOrUri === 'string' ? directoryOrUri : splitPath(directoryOrUri, repoPath)[0],

+ 2
- 2
src/git/gitProvider.ts Dosyayı Görüntüle

@ -475,8 +475,8 @@ export interface GitProvider extends Disposable {
stageFile(repoPath: string, pathOrUri: string | Uri): Promise<void>;
stageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise<void>;
unStageFile(repoPath: string, pathOrUri: string | Uri): Promise<void>;
unStageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise<void>;
unstageFile(repoPath: string, pathOrUri: string | Uri): Promise<void>;
unstageDirectory(repoPath: string, directoryOrUri: string | Uri): Promise<void>;
stashApply?(repoPath: string, stashName: string, options?: { deleteAfter?: boolean | undefined }): Promise<void>;
stashDelete?(repoPath: string, stashName: string, ref?: string): Promise<void>;

+ 2
- 2
src/git/gitProviderService.ts Dosyayı Görüntüle

@ -2731,7 +2731,7 @@ export class GitProviderService implements Disposable {
@log()
unStageFile(repoPath: string | Uri, pathOrUri: string | Uri): Promise<void> {
const { provider, path } = this.getProvider(repoPath);
return provider.unStageFile(path, pathOrUri);
return provider.unstageFile(path, pathOrUri);
}
unStageDirectory(repoPath: string | Uri, directory: string): Promise<void>;
@ -2739,7 +2739,7 @@ export class GitProviderService implements Disposable {
@log()
unStageDirectory(repoPath: string | Uri, directoryOrUri: string | Uri): Promise<void> {
const { provider, path } = this.getProvider(repoPath);
return provider.unStageDirectory(path, directoryOrUri);
return provider.unstageDirectory(path, directoryOrUri);
}
@log()

+ 2
- 2
src/plus/github/githubGitProvider.ts Dosyayı Görüntüle

@ -3124,10 +3124,10 @@ export class GitHubGitProvider implements GitProvider, Disposable {
async stageDirectory(_repoPath: string, _directoryOrUri: string | Uri): Promise<void> {}
@log()
async unStageFile(_repoPath: string, _pathOrUri: string | Uri): Promise<void> {}
async unstageFile(_repoPath: string, _pathOrUri: string | Uri): Promise<void> {}
@log()
async unStageDirectory(_repoPath: string, _directoryOrUri: string | Uri): Promise<void> {}
async unstageDirectory(_repoPath: string, _directoryOrUri: string | Uri): Promise<void> {}
@gate()
private async ensureRepositoryContext(

Yükleniyor…
İptal
Kaydet