summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vimulti.clj15
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]