Use `magit-section-case' to get branch from wazzup.
This commit is contained in:
parent
179f1b9809
commit
8bf8a36db6
1 changed files with 4 additions and 3 deletions
7
magit.el
7
magit.el
|
@ -2558,9 +2558,10 @@ Fails if working tree or staging area contain uncommitted changes.
|
|||
;;; 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 REVISION into the current 'HEAD'; leave changes uncommitted.
|
||||
|
|
Loading…
Reference in a new issue