From c6a62accc5ed4bbdae4e1dc2060210ecfc4cdb8a Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Sat, 14 Oct 2023 16:08:34 +0200 Subject: [PATCH] magit-jump-*-pushremote: Restore functionality `magit-define-section-jumper' uses `magit-get-section', which in turn uses `magit-section-ident-value', which for these sections implements the fake values containing "@{push}". We therefore have to use these same fake values in the jumper definitions. Closes #5029. --- lisp/magit-log.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/magit-log.el b/lisp/magit-log.el index 0b91f03b1c..106f0fb108 100644 --- a/lisp/magit-log.el +++ b/lisp/magit-log.el @@ -1857,8 +1857,7 @@ in the pushremote case." (magit-log-insert-child-count)))) (magit-define-section-jumper magit-jump-to-unpulled-from-pushremote - "Unpulled from " unpulled - (concat ".." (magit-get-push-branch))) + "Unpulled from " unpulled "..@{push}") (defun magit-insert-unpulled-from-pushremote () "Insert commits that haven't been pulled from the push-remote yet." @@ -1929,8 +1928,7 @@ Show the last `magit-log-section-commit-count' commits." magit-buffer-log-args)))))) (magit-define-section-jumper magit-jump-to-unpushed-to-pushremote - "Unpushed to " unpushed - (concat (magit-get-push-branch) "..")) + "Unpushed to " unpushed "@{push}..") (defun magit-insert-unpushed-to-pushremote () "Insert commits that haven't been pushed to the push-remote yet."