Explorar o código

chore: remove git/get-local-diffs

It is the same as git/get-diffs
Yukun Guo %!s(int64=4) %!d(string=hai) anos
pai
achega
9906555aad

+ 1 - 1
src/main/frontend/components/diff.cljs

@@ -142,7 +142,7 @@
      (when-let [repo (state/get-current-repo)]
        (p/let [remote-latest-commit (common-handler/get-remote-ref repo)
                local-latest-commit (common-handler/get-ref repo)
-               result (git/get-local-diffs repo local-latest-commit remote-latest-commit)
+               result (git/get-diffs repo local-latest-commit remote-latest-commit)
                token (helper/get-github-token repo)]
          (reset! state/diffs result)
          (reset! remote-hash-id remote-latest-commit)

+ 0 - 4
src/main/frontend/git.cljs

@@ -182,10 +182,6 @@
              (first commons)
              (find-common-base repo-url local-parent remote-parent local-commits remote-commits))))))))
 
-(defn get-local-diffs
-  [repo-url remote-id local-id]
-  (get-diffs repo-url remote-id local-id))
-
 (defn read-blob
   [repo-url oid path]
   (js/window.workerThread.readBlob (util/get-repo-dir repo-url)

+ 1 - 1
src/main/frontend/handler/repo.cljs

@@ -273,7 +273,7 @@
   [repo-url]
   (p/let [remote-latest-commit (common-handler/get-remote-ref repo-url)
           local-latest-commit (common-handler/get-ref repo-url)]
-    (git/get-local-diffs repo-url local-latest-commit remote-latest-commit)))
+    (git/get-diffs repo-url local-latest-commit remote-latest-commit)))
 
 (defn pull
   [repo-url {:keys [force-pull? show-diff? try-times]