fix: preserve staged and unstaged changes per file (#3104)

This commit is contained in:
José Almeida
2026-08-30 13:26:18 +00:00
committed by GitHub
parent c946140812
commit cc2ee0b43d
48 changed files with 2075 additions and 112 deletions
@@ -1,4 +1,7 @@
import type { GitChangeLayer } from "@/lib/state/slices/session-runtime/types";
export type DiffSource = "uncommitted" | "committed" | "pr";
export type ChangeLayer = GitChangeLayer;
export type LocalCommitDetailTarget = {
source: "local";
@@ -23,6 +26,7 @@ export type OpenDiffOptions = {
source?: DiffSource;
repositoryName?: string;
prKey?: string;
changeLayer?: ChangeLayer;
};
export type DiffSheetMode =
@@ -33,5 +37,6 @@ export type DiffSheetMode =
sourceFilter?: "all" | DiffSource;
repositoryName?: string;
prKey?: string;
changeLayer?: ChangeLayer;
}
| { kind: "commit"; target: CommitDetailTarget };