emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/eldoc-diffstat b79a94abab 07/10: Add support for stashes i


From: ELPA Syncer
Subject: [nongnu] elpa/eldoc-diffstat b79a94abab 07/10: Add support for stashes in magit
Date: Fri, 13 Dec 2024 16:01:51 -0500 (EST)

branch: elpa/eldoc-diffstat
commit b79a94abab9d4d1d0cdab7180684013281e65cdd
Author: Johann Klähn <johann@jklaehn.de>
Commit: Johann Klähn <johann@jklaehn.de>

    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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]