diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2022-01-10 20:50:00 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2022-01-11 11:20:24 +0100 |
| commit | c8c2efd0141186c5808541d6844b58b876a1d81b (patch) | |
| tree | 5a51449bbd35e946920f4b2479514ab23666d077 /lisp/magit-bisect.el | |
| parent | 5e70f10566e11a2dc6d516ffc865a3743a07c020 (diff) | |
Define version> and version>= but sadly with our prefix
My brain is too small to always get yoda conditions right, while the
Emacs maintainers have huge brains and as a consequence have rejected
the addition of these functions on grounds of them being unnecessary.
I don't want to make such mistakes anymore, so I am forced to define
these functions myself.
Diffstat (limited to 'lisp/magit-bisect.el')
| -rw-r--r-- | lisp/magit-bisect.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/magit-bisect.el b/lisp/magit-bisect.el index 1b62b0a..337d6e0 100644 --- a/lisp/magit-bisect.el +++ b/lisp/magit-bisect.el @@ -65,11 +65,11 @@ ["Arguments" ("-n" "Don't checkout commits" "--no-checkout") ("-p" "Follow only first parent of a merge" "--first-parent" - :if (lambda () (version<= "2.29" (magit-git-version)))) + :if (lambda () (magit--version>= (magit-git-version) "2.29"))) (6 magit-bisect:--term-old - :if (lambda () (version<= "2.7" (magit-git-version)))) + :if (lambda () (magit--version>= (magit-git-version) "2.7"))) (6 magit-bisect:--term-new - :if (lambda () (version<= "2.7" (magit-git-version))))] + :if (lambda () (magit--version>= (magit-git-version) "2.7")))] ["Actions" ("B" "Start" magit-bisect-start) ("s" "Start script" magit-bisect-run)]] @@ -78,7 +78,7 @@ ("B" "Bad" magit-bisect-bad) ("g" "Good" magit-bisect-good) (6 "m" "Mark" magit-bisect-mark - :if (lambda () (version<= "2.7" (magit-git-version)))) + :if (lambda () (magit--version>= (magit-git-version) "2.7"))) ("k" "Skip" magit-bisect-skip) ("r" "Reset" magit-bisect-reset) ("s" "Run script" magit-bisect-run)]) |
