branch: elpa/eldoc-diffstat
commit fdce0b8e2a2178edce7ac9a568f39f844c1c7de9
Author: Johann Klähn <[email protected]>
Commit: Johann Klähn <[email protected]>
Include subject in eldoc-diffstat output
This is useful in `vc-annotate-mode`.
---
eldoc-diffstat.el | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/eldoc-diffstat.el b/eldoc-diffstat.el
index dc2efdca42..ca6b599efe 100644
--- a/eldoc-diffstat.el
+++ b/eldoc-diffstat.el
@@ -29,7 +29,7 @@
(defvar eldoc-diffstat--process nil)
(defconst eldoc-diffstat--command
(list "git" "--no-pager" "show" "--color=always"
- "--format=format:%an <%ae>, %aD" "--stat=80"))
+ "--format=format:%an <%ae>, %aD:%n%s" "--stat=80"))
;;;###autoload
(defun eldoc-diffstat-setup ()
@@ -97,6 +97,10 @@ Intended for `eldoc-documentation-functions'."
(line-end-position)
'face 'bold)
+ ;; Join second line.
+ (forward-line)
+ (join-line)
+
;; Move summary to the top and make it italic.
(forward-line)
(reverse-region (point) (point-max))