mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
Fix git porcelain output parsing and deduplicate staged/unstaged file entries
This commit is contained in:
1 parent
82ccacb7be
commit
353b9d4495
4 files changed
+26
-21
No files matched your search
@@ -96,7 +96,7 @@ export function ChangesTab({ repoId, onFileSelect, selectedFile, isMobile }: Cha
|
||||
<>
|
||||
{stagedFiles.length > 0 && (
|
||||
<GitFlatFileList
|
||||
files={status.files}
|
||||
files={stagedFiles}
|
||||
staged={true}
|
||||
onSelect={onFileSelect}
|
||||
onUnstage={handleUnstage}
|
||||
@@ -106,7 +106,7 @@ export function ChangesTab({ repoId, onFileSelect, selectedFile, isMobile }: Cha
|
||||
|
||||
{unstagedFiles.length > 0 && (
|
||||
<GitFlatFileList
|
||||
files={status.files}
|
||||
files={unstagedFiles}
|
||||
staged={false}
|
||||
onSelect={onFileSelect}
|
||||
onStage={handleStage}
|
||||
@@ -179,7 +179,7 @@ export function ChangesTab({ repoId, onFileSelect, selectedFile, isMobile }: Cha
|
||||
<>
|
||||
{stagedFiles.length > 0 && (
|
||||
<GitFlatFileList
|
||||
files={status.files}
|
||||
files={stagedFiles}
|
||||
staged={true}
|
||||
onSelect={onFileSelect}
|
||||
onUnstage={handleUnstage}
|
||||
@@ -189,7 +189,7 @@ export function ChangesTab({ repoId, onFileSelect, selectedFile, isMobile }: Cha
|
||||
|
||||
{unstagedFiles.length > 0 && (
|
||||
<GitFlatFileList
|
||||
files={status.files}
|
||||
files={unstagedFiles}
|
||||
staged={false}
|
||||
onSelect={onFileSelect}
|
||||
onStage={handleStage}
|
||||
|
||||
Reference in new issue
Block a user