summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2022-12-26 18:06:28 -0500
committerKyle Meyer <kyle@kyleam.com>2024-01-22 00:02:53 -0500
commit2490d55bcce733e118de9660e0324a6ce57c6426 (patch)
treef74d484f220801f697fb8cb7ae5ed2e060a59900 /lisp
parentff623acacf508f4356a601fe304dfab18637f3a4 (diff)
downloademacs.d-2490d55bcce733e118de9660e0324a6ce57c6426.tar.gz
km/magit-github-diff-link: Dereference to commit
Giving tag OID won't work on GitHub.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/km-magit.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 92ba112..204bddb 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -1143,8 +1143,8 @@ function."
;; This always converts to commits IDs. It could try to map
;; refnames to the appropriate GitHub link (including remotes
;; to forks), but I don't have much need for it at the moment.
- (let ((rev1 (magit-rev-parse (match-string 1 magit-buffer-range)))
- (rev2 (magit-rev-parse (match-string 3 magit-buffer-range))))
+ (let ((rev1 (magit-commit-p (match-string 1 magit-buffer-range)))
+ (rev2 (magit-commit-p (match-string 3 magit-buffer-range))))
(format "%s/compare/%s...%s"
(or (km/magit-github-url) "")
rev1 rev2)))))