Quellcode durchsuchen

Ensures getting the files details updates the file

main
Eric Amodio vor 2 Jahren
Ursprung
Commit
b498c2a046
1 geänderte Dateien mit 14 neuen und 0 gelöschten Zeilen
  1. +14
    -0
      src/git/models/commit.ts

+ 14
- 0
src/git/models/commit.ts Datei anzeigen

@ -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;

Laden…
Abbrechen
Speichern