Sfoglia il codice sorgente

Ensures getting the files details updates the file

main
Eric Amodio 2 anni fa
parent
commit
b498c2a046
1 ha cambiato i file con 14 aggiunte e 0 eliminazioni
  1. +14
    -0
      src/git/models/commit.ts

+ 14
- 0
src/git/models/commit.ts Vedi File

@ -202,6 +202,20 @@ export class GitCommit implements GitRevisionReference {
this._message = commit.message;
this._files = commit.files as GitFileChange[];
if (this._file != null) {
const file = this._files.find(f => f.path === this._file!.path);
if (file != null) {
this._file = new GitFileChange(
file.repoPath,
file.path,
file.status,
file.originalPath ?? this._file.originalPath,
file.previousSha ?? this._file.previousSha,
file.stats ?? this._file.stats,
);
}
}
if (untrackedResult.status === 'fulfilled' && untrackedResult.value != null) {
this._stashUntrackedFilesLoaded = true;
commit = untrackedResult.value;

Caricamento…
Annulla
Salva