Reduce diff induced UI craches (#794)
This commit is contained in:
@@ -110,7 +110,15 @@ 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 = { change: DiffChangeKind, oldPath: string | null, newPath: string | null, oldContent: string | null, newContent: string | null, };
|
||||
export type Diff = { change: DiffChangeKind, oldPath: string | null, newPath: string | null, oldContent: string | null, newContent: string | null,
|
||||
/**
|
||||
* True when file contents are intentionally omitted (e.g., too large)
|
||||
*/
|
||||
contentOmitted: boolean,
|
||||
/**
|
||||
* Optional precomputed stats for omitted content
|
||||
*/
|
||||
additions: number | null, deletions: number | null, };
|
||||
|
||||
export type DiffChangeKind = "added" | "deleted" | "modified" | "renamed" | "copied" | "permissionChange";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user