diff options
| author | eltrac <hi@eltr.ac> | 2026-07-05 12:13:14 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-07-05 12:13:14 +0800 |
| commit | 9f9786694df463b5b81aad3ff0591042bec6e81b (patch) | |
| tree | 713101889a5796248fb7cd2c4dca09560c76762a | |
| parent | d483aad0ee38ba5d4dcae2c3f87490611db32871 (diff) | |
delete unused function
| -rw-r--r-- | vimulti.clj | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vimulti.clj b/vimulti.clj index d33b53c..80c4014 100644 --- a/vimulti.clj +++ b/vimulti.clj @@ -35,21 +35,6 @@ :out :string} "git branch --show-current")) -;; config switcher -(defn- use-branch [branch args] - (let [current-branch (or - (get-current-branch (:editor-config config)) - (:default-branch config))] - (when-not (= current-branch branch) - (shell {:dir (:editor-config config)} - (str "git switch " branch))) - ;; then use editor - (shell (str (:editor-command config) " " (apply str args))) - ;; lastly, swtich back - (when-not (= current-branch branch) - (shell {:dir (:editor-config config)} - (str "git switch " current-branch))))) - ;; target should be a string like "app-name:branch" or "app-name@tag" ;; returns a map with keys :app-name :branch :tag... (defn- parse-target-string [target] |
