mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 17:32:41 +00:00
Git - remove deprecated extension API (#209010)
This commit is contained in:
parent
1d1c28eed1
commit
a7f384badb
|
@ -160,10 +160,6 @@ export class ApiRepository implements Repository {
|
|||
return this.repository.diffBetween(ref1, ref2, path);
|
||||
}
|
||||
|
||||
getDiff(): Promise<string[]> {
|
||||
return this.repository.getDiff();
|
||||
}
|
||||
|
||||
hashObject(data: string): Promise<string> {
|
||||
return this.repository.hashObject(data);
|
||||
}
|
||||
|
|
2
extensions/git/src/api/git.d.ts
vendored
2
extensions/git/src/api/git.d.ts
vendored
|
@ -226,8 +226,6 @@ export interface Repository {
|
|||
diffBetween(ref1: string, ref2: string): Promise<Change[]>;
|
||||
diffBetween(ref1: string, ref2: string, path: string): Promise<string>;
|
||||
|
||||
getDiff(): Promise<string[]>;
|
||||
|
||||
hashObject(data: string): Promise<string>;
|
||||
|
||||
createBranch(name: string, checkout: boolean, ref?: string): Promise<void>;
|
||||
|
|
|
@ -1599,21 +1599,6 @@ export class Repository implements Disposable {
|
|||
return await this.run(Operation.RevList, () => this.repository.getCommitCount(range));
|
||||
}
|
||||
|
||||
async getDiff(): Promise<string[]> {
|
||||
const diff: string[] = [];
|
||||
if (this.indexGroup.resourceStates.length !== 0) {
|
||||
for (const file of this.indexGroup.resourceStates.map(r => r.resourceUri.fsPath)) {
|
||||
diff.push(await this.diffIndexWithHEAD(file));
|
||||
}
|
||||
} else {
|
||||
for (const file of this.workingTreeGroup.resourceStates.map(r => r.resourceUri.fsPath)) {
|
||||
diff.push(await this.diffWithHEAD(file));
|
||||
}
|
||||
}
|
||||
|
||||
return diff;
|
||||
}
|
||||
|
||||
async revParse(ref: string): Promise<string | undefined> {
|
||||
return await this.run(Operation.RevParse, () => this.repository.revParse(ref));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue