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
+1
View File
@@ -56,6 +56,7 @@ A file with a git change shows a letter on the right of its row:
| `M` | Modified | teal |
| `R` | Renamed | teal |
| `D` | Deleted | amber-deep |
| `U` | Merge conflict | red |
The letter is the file's overall status. When a file has both a staged and an unstaged change, the unstaged one wins. Folders do not show a letter.
+4 -4
View File
@@ -72,18 +72,18 @@ The changes sit in up to four sections, in this order. A section with no rows is
- Click a section header to fold or unfold it.
- One file can show up twice: once in staged and once in another section. That happens when you staged a file and then edited it again. Each row stands for its own half.
- A conflicted row (`U`) only offers **Stage**. Staging it marks the conflict as resolved.
- A file with a merge conflict is never staged on its own: it sits in **changed** as a `U` row, and it does not count as a staged file. That row only offers **Stage**. Staging it marks the conflict as resolved.
### File rows
Every row, left to right:
- A chevron: click anywhere on the row to show or hide its inline diff.
- A status badge: `A` new, `M` modified, `D` deleted, `R` renamed, `U` conflict. Hover it for the word.
- The path: the folder dim, the file name bright. A deleted file is struck through.
- A status badge: `A` new, `M` modified, `D` deleted, `R` renamed, `U` merge conflict (red). Hover it for the word.
- The path: the folder dim, the file name bright. A deleted file is struck through. A conflicted file has a red flag after its name; hover it for `Merge conflict — resolve, then Stage`.
- The line counts: `+N` in teal and `−N` in light amber.
- The row actions, from the table above.
Staged rows carry an amber bar on their left edge.
Staged rows carry an amber bar on their left edge. A conflicted row carries a red bar and a faint red fill. Red is used for nothing else in the app.
### Row actions
- **Stage** and **Unstage** run at once. They never ask.