File
Blob: src/shared/git/types.ts
| 1 | export type PackRefIndexStatus = "present" | "missing" | "unknown"; |
| 2 | |
| 3 | export type CommitDiffChangeType = "A" | "M" | "D"; |
| 4 | |
| 5 | export interface CommitDiffEntry { |
| 6 | path: string; |
| 7 | changeType: CommitDiffChangeType; |
| 8 | oldOid?: string; |
| 9 | newOid?: string; |
| 10 | oldMode?: string; |
| 11 | newMode?: string; |
| 12 | } |
| 13 | |
| 14 | export interface CommitDiffResult { |
| 15 | baseCommitOid?: string; |
| 16 | compareMode: "root" | "first-parent"; |
| 17 | entries: CommitDiffEntry[]; |
| 18 | added: number; |
| 19 | modified: number; |
| 20 | deleted: number; |
| 21 | total: number; |
| 22 | truncated: boolean; |
| 23 | truncateReason?: "max_files" | "max_tree_pairs" | "time_budget" | "soft_budget"; |
| 24 | } |
| 25 | |
| 26 | export interface CommitFilePatchResult { |
| 27 | path: string; |
| 28 | changeType: CommitDiffChangeType; |
| 29 | oldOid?: string; |
| 30 | newOid?: string; |
| 31 | oldTooLarge?: boolean; |
| 32 | newTooLarge?: boolean; |
| 33 | binary?: boolean; |
| 34 | skipped?: boolean; |
| 35 | skipReason?: "binary" | "too_large" | "not_found" | "too_many_lines"; |
| 36 | patch?: string; |
| 37 | } |