improves the git feature by adding a conflict status

This commit is contained in:
2026-10-30 16:47:34 +01:00
parent caec81e762
commit 0278d7fbd1
14 changed files with 10927 additions and 19 deletions
@@ -188,6 +188,12 @@ import Testing
#expect(git.executed == [["restore", "--", "src/b.php"]])
}
@Test func aConflictIsNotAStagedFile() async {
let (store, _, _) = await makeStore(snapshot([("both.txt", .unmerged, false), ("config/app.json", .modified, true)]))
#expect(store.stagedPathCount == 1)
#expect(store.fileStatuses["both.txt"] == .unmerged)
}
@Test func unstagingLogsRestoreStaged() async {
let (store, git, _) = await makeStore()
await store.unstage(["config/app.json"])