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
@@ -29,9 +29,9 @@ import Testing
])
}
@Test("a merge conflict stays one row", arguments: [("U", "U"), ("A", "A"), ("D", "D"), ("U", "D")] as [(Character, Character)])
@Test("a merge conflict stays one unstaged U row", arguments: [("U", "U"), ("A", "A"), ("D", "D"), ("U", "D")] as [(Character, Character)])
func conflict(index: Character, working: Character) {
#expect(Porcelain.classify(index: index, working: working) == [GitRowSpec(status: .modified, staged: true)])
#expect(Porcelain.classify(index: index, working: working) == [GitRowSpec(status: .unmerged, staged: false)])
}
// MARK: headers