mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-25 12:47:14 +00:00
* Initial refactor of hover commands * Delete old code for hover commands * More refactoring
18 lines
1.0 KiB
TypeScript
18 lines
1.0 KiB
TypeScript
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
import { PickRemoteSourceOptions, PickRemoteSourceResult } from './typings/git-base';
|
|
import { GitBaseApi } from './git-base';
|
|
|
|
export async function pickRemoteSource(options: PickRemoteSourceOptions & { branch?: false | undefined }): Promise<string | undefined>;
|
|
export async function pickRemoteSource(options: PickRemoteSourceOptions & { branch: true }): Promise<PickRemoteSourceResult | undefined>;
|
|
export async function pickRemoteSource(options: PickRemoteSourceOptions = {}): Promise<string | PickRemoteSourceResult | undefined> {
|
|
return GitBaseApi.getAPI().pickRemoteSource(options);
|
|
}
|
|
|
|
export async function getRemoteSourceActions(url: string) {
|
|
return GitBaseApi.getAPI().getRemoteSourceActions(url);
|
|
}
|