emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit c6a62accc5 2/2: magit-jump-*-pushremote: Restor


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit c6a62accc5 2/2: magit-jump-*-pushremote: Restore functionality
Date: Sun, 15 Oct 2023 07:00:37 -0400 (EDT)

branch: elpa/git-commit
commit c6a62accc5ed4bbdae4e1dc2060210ecfc4cdb8a
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    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 <push-remote>" unpulled
-  (concat ".." (magit-get-push-branch)))
+  "Unpulled from <push-remote>" 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 <push-remote>" unpushed
-  (concat (magit-get-push-branch) ".."))
+  "Unpushed to <push-remote>" unpushed "@{push}..")
 
 (defun magit-insert-unpushed-to-pushremote ()
   "Insert commits that haven't been pushed to the push-remote yet."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]