Experimental showing of unmerged commits.
* magit.el (magit-insert-unmerged-commits): New. (magit-update-status): Use it.
This commit is contained in:
parent
6b839c8df0
commit
8c09f66694
1 changed files with 10 additions and 2 deletions
12
magit.el
12
magit.el
|
@ -1062,6 +1062,13 @@ Please see the manual for a complete description of Magit.
|
|||
(or magit-marked-commit
|
||||
(error "Not commit marked")))
|
||||
|
||||
(defun magit-insert-unmerged-commits (remote branch)
|
||||
(magit-insert-section 'unmerged
|
||||
"Unmerged commits:" 'magit-wash-log
|
||||
nil
|
||||
"git" "log" "--graph" "--pretty=oneline"
|
||||
(format "HEAD..%s/%s" remote branch)))
|
||||
|
||||
(defun magit-insert-unpushed-commits (remote branch)
|
||||
(magit-insert-section 'unpushed
|
||||
"Unpushed commits:" 'magit-wash-log
|
||||
|
@ -1106,8 +1113,9 @@ Please see the manual for a complete description of Magit.
|
|||
(if staged "Unstaged changes:" "Changes:"))
|
||||
(if staged
|
||||
(magit-insert-staged-changes)))
|
||||
(if remote
|
||||
(magit-insert-unpushed-commits remote branch)))))
|
||||
(when remote
|
||||
(magit-insert-unmerged-commits remote branch)
|
||||
(magit-insert-unpushed-commits remote branch)))))
|
||||
(magit-goto-line old-line)
|
||||
(when (bobp)
|
||||
(magit-goto-section '(unstaged)))
|
||||
|
|
Loading…
Reference in a new issue