diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-25 17:02:49 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-25 17:06:26 +0100 |
| commit | 8552e2b7444777d281b8b4d1abf74e163266473a (patch) | |
| tree | 58baadd1c18251b3e3c687a71a49f30cc08e8ba3 /lisp/magit-git.el | |
| parent | aa940cb50c7b5db36f038abdcc06e793ea1946d6 (diff) | |
magit-rev-{eq,equal}: Cosmetics
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index dd51ba9..6c77027 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -1482,9 +1482,9 @@ However, if REV is nil or has the form \":/TEXT\", return REV itself." (defun magit-rev-eq (a b) "Return t if A and B refer to the same commit." - (let ((a (magit-commit-oid a t)) - (b (magit-commit-oid b t))) - (and a b (equal a b)))) + (and-let ((a (magit-commit-oid a t)) + (b (magit-commit-oid b t))) + (equal a b))) (defun magit-rev-ancestor-p (a b) "Return non-nil if commit A is an ancestor of commit B." @@ -1600,9 +1600,9 @@ nil, then use \"heads/\"." A symbolic-ref pointing to some ref, is `equal' to that ref, as are two symbolic-refs pointing to the same ref. Refnames may be abbreviated." - (let ((a (magit-ref-fullname a)) - (b (magit-ref-fullname b))) - (and a b (equal a b)))) + (and-let ((a (magit-ref-fullname a)) + (b (magit-ref-fullname b))) + (equal a b))) (defun magit-ref-eq (a b) "Return t if the refnames A and B are `eq'. |
