Improve diff display for New, Deleted, and renamed files in Diffs tab (#552)

This commit is contained in:
Solomon
2025-08-21 17:47:42 +01:00
committed by GitHub
parent ac69b20bba
commit c0808a6d76
7 changed files with 295 additions and 128 deletions

View File

@@ -94,7 +94,9 @@ export enum CheckTokenResponse { VALID = "VALID", INVALID = "INVALID" }
export type GitBranch = { name: string, is_current: boolean, is_remote: boolean, last_commit_date: Date, };
export type Diff = { oldFile: FileDiffDetails | null, newFile: FileDiffDetails | null, hunks: Array<string>, };
export type Diff = { change: DiffChangeKind, oldPath: string | null, newPath: string | null, oldContent: string | null, newContent: string | null, };
export type DiffChangeKind = "added" | "deleted" | "modified" | "renamed" | "copied" | "permissionChange";
export type FileDiffDetails = { fileName: string | null, content: string | null, };