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:
2026-11-04 10:07:52 +01:00
parent 600d4874d2
commit cc6651c08a
49 changed files with 1944 additions and 180 deletions
+5 -2
View File
@@ -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)