mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
cleaner git push api
This commit is contained in:
@@ -168,12 +168,8 @@ export class ApiRepository implements Repository {
|
||||
return this._repository.pull();
|
||||
}
|
||||
|
||||
push(head: Branch): Promise<void> {
|
||||
return this._repository.push(head);
|
||||
}
|
||||
|
||||
pushTo(remote?: string, name?: string, setUpstream: boolean = false): Promise<void> {
|
||||
return this._repository.pushTo(remote, name, setUpstream);
|
||||
push(remoteName?: string, branchName?: string, setUpstream: boolean = false): Promise<void> {
|
||||
return this._repository.pushTo(remoteName, branchName, setUpstream);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
3
extensions/git/src/api/git.d.ts
vendored
3
extensions/git/src/api/git.d.ts
vendored
@@ -152,8 +152,7 @@ export interface Repository {
|
||||
|
||||
fetch(remote?: string, ref?: string): Promise<void>;
|
||||
pull(): Promise<void>;
|
||||
push(head: Branch): Promise<void>;
|
||||
pushTo(remote?: string, name?: string, setUpstream?: boolean): Promise<void>;
|
||||
push(remoteName?: string, branchName?: string, setUpstream?: boolean): Promise<void>;
|
||||
}
|
||||
|
||||
export interface API {
|
||||
|
||||
Reference in New Issue
Block a user