This allow to guess the branch using ancestor of current section. Signed-off-by: Rémi Vanicat <[email protected]> --- magit.el | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/magit.el b/magit.el index d543be5..73144ad 100644 --- a/magit.el +++ b/magit.el @@ -2475,9 +2475,10 @@ must return a string which will represent the log line.") ;;; Merging (defun magit-guess-branch () - (let ((sec (magit-current-section))) - (if (and sec (eq (magit-section-type sec) 'wazzup)) - (magit-section-info sec)))) + (magit-section-case (item info) + ((wazzup commit) + (magit-section-info (magit-section-parent item))) + ((wazzup) info))) (defun magit-manual-merge (rev) "Merge (without committing) REV. -- 1.7.0.4 -- To unsubscribe, reply using "remove me" as the subject.
