Parcourir la source

Ensures getting the files details updates the file

main
Eric Amodio il y a 2 ans
Parent
révision
b498c2a046
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  1. +14
    -0
      src/git/models/commit.ts

+ 14
- 0
src/git/models/commit.ts Voir le fichier

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

Chargement…
Annuler
Enregistrer