[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/eldoc-diffstat eb3a9e7f3a 06/10: Add support for git-rebas
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/eldoc-diffstat eb3a9e7f3a 06/10: Add support for git-rebase-mode |
Date: |
Fri, 13 Dec 2024 16:01:50 -0500 (EST) |
branch: elpa/eldoc-diffstat
commit eb3a9e7f3aad9f531bc8e934555b55e90bcc11c7
Author: Johann Klähn <johann@jklaehn.de>
Commit: Johann Klähn <johann@jklaehn.de>
Add support for git-rebase-mode
---
eldoc-diffstat.el | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/eldoc-diffstat.el b/eldoc-diffstat.el
index 83b90b5c76..222381a1fe 100644
--- a/eldoc-diffstat.el
+++ b/eldoc-diffstat.el
@@ -39,6 +39,7 @@
;;; Code:
(require 'ansi-color)
+(require 'eieio)
(defvar eldoc-diffstat--process nil
"The latest async process used for fetching diffstat information.
@@ -83,6 +84,12 @@ a string identifying the specific revision."
((when-let (((fboundp 'magit-commit-at-point))
(revision (magit-commit-at-point)))
(cons 'Git revision)))
+ ((and (derived-mode-p 'git-rebase-mode)
+ (fboundp 'git-rebase-current-line)
+ (with-slots (action-type target)
+ (git-rebase-current-line)
+ (and (eq action-type 'commit)
+ (cons 'Git target)))))
((and (derived-mode-p 'vc-annotate-mode)
(boundp 'vc-annotate-backend)
(fboundp 'vc-annotate-extract-revision-at-line))
- [nongnu] branch elpa/eldoc-diffstat created (now 99b49c9793), ELPA Syncer, 2024/12/13
- [nongnu] elpa/eldoc-diffstat 1a75ccb1ec 02/10: Use cached result if called with same commit, ELPA Syncer, 2024/12/13
- [nongnu] elpa/eldoc-diffstat eb3a9e7f3a 06/10: Add support for git-rebase-mode,
ELPA Syncer <=
- [nongnu] elpa/eldoc-diffstat fdce0b8e2a 03/10: Include subject in eldoc-diffstat output, ELPA Syncer, 2024/12/13
- [nongnu] elpa/eldoc-diffstat a15690a8a7 05/10: Minor refactoring, ELPA Syncer, 2024/12/13
- [nongnu] elpa/eldoc-diffstat 956f2dc247 09/10: Fix typos, ELPA Syncer, 2024/12/13
- [nongnu] elpa/eldoc-diffstat 583a4959c0 01/10: Initial import, ELPA Syncer, 2024/12/13
- [nongnu] elpa/eldoc-diffstat 8786bab235 04/10: Add support for Hg repos, ELPA Syncer, 2024/12/13
- [nongnu] elpa/eldoc-diffstat b79a94abab 07/10: Add support for stashes in magit, ELPA Syncer, 2024/12/13
- [nongnu] elpa/eldoc-diffstat 10d42b8b51 08/10: Add README.md and .gitignore, ELPA Syncer, 2024/12/13
- [nongnu] elpa/eldoc-diffstat 99b49c9793 10/10: Silence byte compilation warnings, ELPA Syncer, 2024/12/13