mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Add git changes viewer with diff display
- Add backend git-operations service for git status and file diffs - Add git/status and git/diff API routes to repos - Add GitChangesPanel component to list changed files with status - Add FileDiffView component with unified diff rendering - Add GitChangesSheet as full-screen dialog wrapper - Integrate View Changes option into BranchSwitcher dropdown - Support both mobile (stacked) and desktop (split) layouts
This commit is contained in:
1 parent
12b7ab54b2
commit
ed82b99236
8 files changed
+815
-3
No files matched your search
@@ -0,0 +1,25 @@
|
||||
export type GitFileStatusType = 'modified' | 'added' | 'deleted' | 'renamed' | 'untracked' | 'copied'
|
||||
|
||||
export interface GitFileStatus {
|
||||
path: string
|
||||
status: GitFileStatusType
|
||||
staged: boolean
|
||||
oldPath?: string
|
||||
}
|
||||
|
||||
export interface GitStatusResponse {
|
||||
branch: string
|
||||
ahead: number
|
||||
behind: number
|
||||
files: GitFileStatus[]
|
||||
hasChanges: boolean
|
||||
}
|
||||
|
||||
export interface FileDiffResponse {
|
||||
path: string
|
||||
status: GitFileStatusType
|
||||
diff: string | null
|
||||
additions: number
|
||||
deletions: number
|
||||
isBinary: boolean
|
||||
}
|
||||
Reference in new issue
Block a user