mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-15 09:35:42 -05:00
Fixes #59 - Updates command context to opened file state
Removes insiders restriction from Open in Remote commands
This commit is contained in:
@@ -235,6 +235,15 @@ export class Git {
|
||||
return gitCommand(root, ...params);
|
||||
}
|
||||
|
||||
static async ls_files(repoPath: string, fileName: string): Promise<string> {
|
||||
try {
|
||||
return await gitCommand(repoPath, 'ls-files', fileName);
|
||||
}
|
||||
catch (ex) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
static remote(repoPath: string): Promise<string> {
|
||||
return gitCommand(repoPath, 'remote', '-v');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user