adds claude-generated commit messages and a recent commits panel to the git view - adds log tailing in the explorer, branch merging and a clean up button
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import HelderCore
|
||||
import SwiftUI
|
||||
|
||||
/// `[ git ]`, the branch and its place against origin, then Pull, Push and Close.
|
||||
/// `[ git ]`, the branch and its place against origin, then Pull, Push, Clean up and Close.
|
||||
struct GitTopBar: View {
|
||||
let model: WorkspaceModel
|
||||
let store: SourceControlStore
|
||||
@@ -21,9 +21,12 @@ struct GitTopBar: View {
|
||||
trailing: state.behind > 0 ? "↓\(state.behind)" : nil) { model.perform(.pull) }
|
||||
GitBarButton(icon: .arrowUpFromLine, label: store.busy == .push ? "Pushing…" : "Push",
|
||||
trailing: state.ahead > 0 ? "↑\(state.ahead)" : nil) { model.perform(.push) }
|
||||
GitBarButton(icon: .eraser, label: "Clean up", trailing: nil) { model.perform(.context(.gitCleanUp)) }
|
||||
.disabledLook(!store.canCleanUp)
|
||||
GitBarButton(icon: .minimize, label: "Close", trailing: "⌘G") { model.perform(.closeGitView) }
|
||||
}
|
||||
.padding(.horizontal, 14)
|
||||
.padding(.leading, model.layout.isFullScreen ? 14 : Metrics.trafficLightInset)
|
||||
.padding(.trailing, 14)
|
||||
.frame(height: GitMetrics.topBar)
|
||||
.background(Palette.panel)
|
||||
.hairline(.bottom)
|
||||
|
||||
Reference in New Issue
Block a user