diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-24 23:23:14 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2026-03-24 23:23:14 +0100 |
| commit | 15bbf3cb3173017c5e311810db6df33021a884e2 (patch) | |
| tree | 9ad140a11c7a5abb6fab6b2f7be50881a2deb17b /lisp/magit-git.el | |
| parent | 949aaa437db41d662b7f3584f690e8268b433b2a (diff) | |
magit-tag-p: Improve performance
Diffstat (limited to 'lisp/magit-git.el')
| -rw-r--r-- | lisp/magit-git.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/magit-git.el b/lisp/magit-git.el index 373fdc3..dd51ba9 100644 --- a/lisp/magit-git.el +++ b/lisp/magit-git.el @@ -2286,8 +2286,8 @@ specified using `core.worktree'." 'magit-branch-local 'magit-branch-remote))) -(defun magit-tag-p (rev) - (car (member rev (magit-list-tags)))) +(defun magit-tag-p (obj) + (equal (magit-object-type obj) "tag")) (defun magit-remote-p (string) (car (member string (magit-list-remotes)))) |
