mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-17 17:25:51 -05:00
Refactors git models & parsers
Adds full git status parsing Adds git status info into status quick pick Switches to async/await in file blame/log
This commit is contained in:
@@ -21,10 +21,10 @@ export class OpenChangedFilesCommand extends ActiveEditorCommand {
|
||||
const repoPath = await this.git.getRepoPathFromUri(uri, this.repoPath);
|
||||
if (!repoPath) return window.showWarningMessage(`Unable to open changed files`);
|
||||
|
||||
const statuses = await this.git.getStatusesForRepo(repoPath);
|
||||
if (!statuses) return window.showWarningMessage(`Unable to open changed files`);
|
||||
const status = await this.git.getStatusForRepo(repoPath);
|
||||
if (!status) return window.showWarningMessage(`Unable to open changed files`);
|
||||
|
||||
uris = statuses.filter(_ => _.status !== 'D').map(_ => Uri.file(path.resolve(repoPath, _.fileName)));
|
||||
uris = status.files.filter(_ => _.status !== 'D').map(_ => Uri.file(path.resolve(repoPath, _.fileName)));
|
||||
}
|
||||
|
||||
for (const uri of uris) {
|
||||
|
||||
Reference in New Issue
Block a user