Files
vscode-gitlens/src/git/models/remote.ts
Eric Amodio ccc29e3dfc Reworks remote parsing
Combines same url into same remote
Adds a change event for custom remote providers
Adds a repo change event for custom remote providers
2017-09-12 15:46:44 -04:00

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);
}
}