adds nice git interface
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user