Compare commits

..

1 Commits

Author SHA1 Message Date
d4a2e06180 Update src/lazygitclj/core.clj 2026-02-03 21:46:47 -10:00
2 changed files with 5 additions and 11 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ name: SCIP Index
on: on:
push: push:
branches: ['**'] branches: [main, master]
workflow_dispatch: workflow_dispatch:
jobs: jobs:
+4 -10
View File
@@ -58,7 +58,7 @@
s)) s))
(defn get-current-diff (defn get-current-diff
"Change doc string for test" "Get the diff for the currently selected item based on panel and cursor."
[model] [model]
(let [panel (:panel model) (let [panel (:panel model)
items (current-items model) items (current-items model)
@@ -92,8 +92,7 @@
;; === Update === ;; === Update ===
(defn update-diff [model] (defn update-diff [model]
;; never update lol (assoc model :diff (get-current-diff model)))
model)
(defn initial-model [] (defn initial-model []
(let [base (merge (let [base (merge
@@ -882,20 +881,15 @@
:else :else
background))) background)))
(defn test-view-2 [& args]
[:box "foo"])
;; === Main === ;; === Main ===
(def temp2 get-current-diff)
(defn -main [& _args] (defn -main [& _args]
(if (git/repo-root) (if (git/repo-root)
(do (do
(println (str "String with initial model: " (initial-model))) (println "Starting lazygitclj...")
(tui/run {:init (initial-model) (tui/run {:init (initial-model)
:update update-model :update update-model
:view test-view-2}) :view view})
(println "Goodbye!")) (println "Goodbye!"))
(do (do
(println "Error: Not a git repository") (println "Error: Not a git repository")