mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-12 11:08:34 -05:00
Combines same url into same remote Adds a change event for custom remote providers Adds a repo change event for custom remote providers
13 lines
505 B
TypeScript
13 lines
505 B
TypeScript
'use strict';
|
|
import { RemoteProvider, RemoteProviderFactory } from '../remotes/factory';
|
|
|
|
export type GitRemoteType = 'fetch' | 'push';
|
|
|
|
export class GitRemote {
|
|
|
|
provider?: RemoteProvider;
|
|
|
|
constructor(public readonly repoPath: string, public readonly name: string, public readonly url: string, public readonly domain: string, public readonly path: string, public readonly types: GitRemoteType[]) {
|
|
this.provider = RemoteProviderFactory.getRemoteProvider(this.domain, this.path);
|
|
}
|
|
} |