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"
|
(insert (format "Local: %s %s\n"
|
||||||
(propertize (or branch "(detached)") 'face 'bold)
|
(propertize (or branch "(detached)") 'face 'bold)
|
||||||
(abbreviate-file-name default-directory)))
|
(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")))
|
(let ((merge-heads (magit-file-lines ".git/MERGE_HEAD")))
|
||||||
(if merge-heads
|
(if merge-heads
|
||||||
(insert (format "Merging: %s\n"
|
(insert (format "Merging: %s\n"
|
||||||
|
|
Loading…
Reference in a new issue