소스 검색

Renames unStage to unstage (more)

main
Eric Amodio 1 년 전
부모
커밋
aade7ef343
2개의 변경된 파일8개의 추가작업 그리고 8개의 파일을 삭제
  1. +6
    -6
      src/git/gitProviderService.ts
  2. +2
    -2
      src/views/viewCommands.ts

+ 6
- 6
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<void>;
unStageFile(repoPath: string | Uri, uri: Uri): Promise<void>;
unstageFile(repoPath: string | Uri, path: string): Promise<void>;
unstageFile(repoPath: string | Uri, uri: Uri): Promise<void>;
@log()
unStageFile(repoPath: string | Uri, pathOrUri: string | Uri): Promise<void> {
unstageFile(repoPath: string | Uri, pathOrUri: string | Uri): Promise<void> {
const { provider, path } = this.getProvider(repoPath);
return provider.unstageFile(path, pathOrUri);
}
unStageDirectory(repoPath: string | Uri, directory: string): Promise<void>;
unStageDirectory(repoPath: string | Uri, uri: Uri): Promise<void>;
unstageDirectory(repoPath: string | Uri, directory: string): Promise<void>;
unstageDirectory(repoPath: string | Uri, uri: Uri): Promise<void>;
@log()
unStageDirectory(repoPath: string | Uri, directoryOrUri: string | Uri): Promise<void> {
unstageDirectory(repoPath: string | Uri, directoryOrUri: string | Uri): Promise<void> {
const { provider, path } = this.getProvider(repoPath);
return provider.unstageDirectory(path, directoryOrUri);
}

+ 2
- 2
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();
}

불러오는 중...
취소
저장