Compare commits

6 Commits

Author SHA1 Message Date
c69c254512 Update .github/workflows/scip-index.yml
SCIP Index / index (push) Successful in 3m32s
2026-02-04 05:44:12 -10:00
6378c4910b Update .github/workflows/scip-index.yml
SCIP Index / index (push) Failing after 6s
2026-02-04 05:43:22 -10:00
0c5d69e7b2 Update .github/workflows/scip-index.yml
SCIP Index / index (push) Failing after 9s
2026-02-04 05:41:49 -10:00
9940d53f79 Update .github/workflows/scip-index.yml
SCIP Index / index (push) Failing after 3s
2026-02-04 05:37:21 -10:00
c814f3618a Update .github/workflows/scip-index.yml
SCIP Index / index (push) Failing after 9s
2026-02-04 05:34:49 -10:00
1ec1171c9b Delete file1.txt
SCIP Index / index (push) Successful in 1m35s
2026-02-03 22:07:47 -10:00
2 changed files with 4 additions and 12 deletions
View File
+4 -12
View File
@@ -6,8 +6,6 @@
[lazygitclj.git :as git] [lazygitclj.git :as git]
[clojure.string :as str])) [clojure.string :as str]))
(def temp tui/run)
;; === Model === ;; === Model ===
(defn load-git-data [] (defn load-git-data []
@@ -58,7 +56,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 +90,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 +879,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")