mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-15 01:25:42 -05:00
Adds experimental support for Open in GitHub
This commit is contained in:
@@ -10,6 +10,7 @@ export * from './models/models';
|
||||
export * from './parsers/blameParser';
|
||||
export * from './parsers/logParser';
|
||||
export * from './parsers/statusParser';
|
||||
export * from './hosting/hostingProvider';
|
||||
|
||||
let git: IGit;
|
||||
|
||||
@@ -210,6 +211,16 @@ export class Git {
|
||||
return gitCommand(root, ...params);
|
||||
}
|
||||
|
||||
static remote(repoPath: string): Promise<string> {
|
||||
const params = ['remote', '-v'];
|
||||
return gitCommand(repoPath, ...params);
|
||||
}
|
||||
|
||||
static remote_url(repoPath: string, remote: string): Promise<string> {
|
||||
const params = ['remote', 'get-url', remote];
|
||||
return gitCommand(repoPath, ...params);
|
||||
}
|
||||
|
||||
static status(repoPath: string): Promise<string> {
|
||||
const params = ['status', '--porcelain=v2', '--branch'];
|
||||
return gitCommand(repoPath, ...params);
|
||||
|
||||
Reference in New Issue
Block a user