adds nice git interface

This commit is contained in:
2026-10-30 13:21:45 +01:00
parent b9c03a7637
commit caec81e762
107 changed files with 6466 additions and 3992 deletions
+2 -2
View File
@@ -82,7 +82,7 @@ public final class EditorStore {
/// Closes the overlay only while it is the Diff.
@ObservationIgnored public var dismissDiffOverlay: (() -> Void)?
@ObservationIgnored public var showToast: ((String, String?) -> Void)?
/// After a write: the git column should re-read.
/// After a write: git should re-read.
@ObservationIgnored public var fileSaved: ((String) -> Void)?
/// Asked before a dirty file closes; without it a dirty file stays open.
@ObservationIgnored public var confirmUnsavedClose: ((String) -> UnsavedCloseChoice)?
@@ -110,7 +110,7 @@ public final class EditorStore {
self.init(root: root, files: files, gitState: { sourceControl.state }, session: session, recentFiles: recentFiles)
}
/// `gitState` is read, never written: the editor only follows the git column.
/// `gitState` is read, never written: the editor only follows git.
public init(root: String, files: FileServicing, gitState: @escaping @MainActor () -> GitWorkingState,
session: SessionStoring, recentFiles: RecentFilesStoring) {
self.root = root