branch: elpa/eldoc-diffstat
commit b79a94abab9d4d1d0cdab7180684013281e65cdd
Author: Johann Klähn <[email protected]>
Commit: Johann Klähn <[email protected]>
Add support for stashes in magit
---
eldoc-diffstat.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/eldoc-diffstat.el b/eldoc-diffstat.el
index 222381a1fe..3c335a31a0 100644
--- a/eldoc-diffstat.el
+++ b/eldoc-diffstat.el
@@ -81,6 +81,9 @@ The returned record should be a cons cell of the form
(BACKEND . REVISION) where
BACKEND is a symbol representing the version control system and REVISION is
a string identifying the specific revision."
(cond
+ ((when-let (((fboundp 'magit-stash-at-point))
+ (revision (magit-stash-at-point)))
+ (cons 'Git revision)))
((when-let (((fboundp 'magit-commit-at-point))
(revision (magit-commit-at-point)))
(cons 'Git revision)))