Unhardcode upstream repo in diff url

Use `doom-repo-url` in diff url to show diff.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
This commit is contained in:
Rudi Grinberg 2020-11-29 17:46:40 -08:00
parent cb32e459e6
commit 12b733b33e

View file

@ -100,7 +100,8 @@ following shell commands:
(substring new-rev 0 10)
(cdr (doom-call-process "git" "log" "-1" "--format=%cr" target-remote))))
(let ((diff-url
(format "https://github.com/hlissner/doom-emacs/compare/%s...%s"
(format "%s/compare/%s...%s"
doom-repo-url
this-rev
new-rev)))
(print! "Link to diff: %s" diff-url)