Add HEAD info to status buffer.
This commit is contained in:
parent
a63fbfa2ce
commit
0b3118061d
1 changed files with 4 additions and 0 deletions
4
magit.el
4
magit.el
|
@ -407,6 +407,10 @@ pushed.
|
|||
(insert (format "Local: %s %s\n"
|
||||
(propertize (or branch "(detached)") 'face 'bold)
|
||||
(abbreviate-file-name default-directory)))
|
||||
(insert
|
||||
(format "Head: %s\n"
|
||||
(magit-shell
|
||||
"git log --max-count=1 --abbrev-commit --pretty=oneline")))
|
||||
(let ((merge-heads (magit-file-lines ".git/MERGE_HEAD")))
|
||||
(if merge-heads
|
||||
(insert (format "Merging: %s\n"
|
||||
|
|
Loading…
Reference in a new issue