Skip to content

Commit 79343ba

Browse files
committed
git: note about needs-push? and branches
1 parent 57020a3 commit 79343ba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ralphie/git.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,12 @@
290290
;; needs-push?
291291
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
292292

293-
(defn needs-push? [repo-path]
293+
(defn needs-push?
294+
"TODO refactor to handle non-main branches
295+
Maybe just compare to the upstream? Needs more nuance.
296+
297+
Works great if you're only on one branch!"
298+
[repo-path]
294299
(-> {:error-message
295300
(str "RALPHIE ERROR for " repo-path " in git/needs-push?")}
296301
(bb/run-proc

0 commit comments

Comments
 (0)