File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,12 @@ yourself, in which case you probably should not reset either.
199
199
(let ((ref (format " refs/pullreqs/%s " (oref pullreq number))))
200
200
(and (magit-rev-verify ref) ref)))
201
201
202
+ (defun forge--pullreq-range (pullreq &optional endpoints )
203
+ (when-let ((head (forge--pullreq-ref pullreq)))
204
+ (concat (forge--get-remote) " /" (oref pullreq base-ref)
205
+ (if endpoints " ..." " .." )
206
+ head)))
207
+
202
208
(cl-defmethod forge-get-url ((pullreq forge-pullreq))
203
209
(forge--format pullreq 'pullreq-url-format ))
204
210
@@ -245,11 +251,10 @@ Also see option `forge-topic-list-limit'."
245
251
(forge--topic-type-prefix repo 'pullreq )))))
246
252
247
253
(defun forge--insert-pullreq-commits (pullreq )
248
- (when-let ((ref (forge--pullreq-ref pullreq)))
254
+ (when-let ((range (forge--pullreq-range pullreq)))
249
255
(magit-insert-section-body
250
256
(cl-letf (((symbol-function #'magit-cancel-section ) (lambda ())))
251
- (magit-insert-log (format " %s ..%s " (oref pullreq base-ref) ref)
252
- magit-buffer-log-args)
257
+ (magit-insert-log range magit-buffer-log-args)
253
258
(magit-make-margin-overlay nil t )))))
254
259
255
260
(cl-defmethod forge--insert-topic-contents :after ((pullreq forge-pullreq)
You can’t perform that action at this time.
0 commit comments