Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
fix(Commit): Display deleted fiiles as deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadalfy committed Feb 6, 2020
1 parent 6500da7 commit 815faba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/projects.js
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,11 @@ class Projects extends Base {
if (change.new_file) {
diffs.push(`new file mode ${change.b_mode}`);
}
if (change.deleted_file) {
diffs.push(`deleted file mode ${change.a_mode}`);
diffs.push(`--- a/${change.old_path}`);
diffs.push('+++ /dev/null');
}
diffs.push(change.diff);
});
document.querySelector('#diffs-panel').style.display = 'flex';
Expand Down

0 comments on commit 815faba

Please sign in to comment.