[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/agitate 6eb66ed1cc 44/67: Add helper to extract commit
From: |
ELPA Syncer |
Subject: |
[elpa] externals/agitate 6eb66ed1cc 44/67: Add helper to extract commit hash |
Date: |
Wed, 28 Sep 2022 16:57:28 -0400 (EDT) |
branch: externals/agitate
commit 6eb66ed1cc287d4da23ef6a1166f2b49569dc0e5
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add helper to extract commit hash
---
agitate.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/agitate.el b/agitate.el
index 34d036c6a5..9ca24f4b5d 100644
--- a/agitate.el
+++ b/agitate.el
@@ -260,6 +260,11 @@ to the text at point."
;;;; Commands for vc-git (Git backend for the Version Control framework)
+(defun agitate--vc-git-get-hash-from-string (string)
+ "Return commit hash from STRING"
+ (when (string-match "\\b\\([0-9a-z]+\\) " string)
+ (match-string 1 string)))
+
;;;###autoload
(defun agitate-vc-git-grep (regexp)
"Run `git-grep(1)' for REGEXP in `vc-root-dir'.
- [elpa] externals/agitate a9a8339126 46/67: Add PROOF OF CONCEPT vc-git-find-revision, (continued)
- [elpa] externals/agitate a9a8339126 46/67: Add PROOF OF CONCEPT vc-git-find-revision, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 412834ce07 66/67: Fix file no dir in agitate--log-edit-extract-file, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate a32ed823b6 24/67: Add TODO about conventional commits, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate fa0a9e5260 42/67: Add echo to agitate-vc-git-kill-commit-message, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 063d94c983 35/67: Add generic README in markdown, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate f9dd3b3f91 41/67: Add agitate-vc-git-kill-commit-message command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate ca4b65bf85 36/67: Add gitignore, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 0b80819820 62/67: Refine regexp for git hash extraction, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 45eb3b6c5d 54/67: Declare agitate-vc-git-show as interactive-only, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 912161bfc1 27/67: Add doclicense.texi which is used in the manual, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 6eb66ed1cc 44/67: Add helper to extract commit hash,
ELPA Syncer <=
- [elpa] externals/agitate 8bb7652cac 43/67: Rename to agitate-vc-git-grep, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 496eba8497 52/67: Add agitate-vc-git-show prototype, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 1e998e1466 59/67: Rename helper for single commit command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate de2094a2f5 53/67: Placate the compiler, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 50251c7eff 64/67: Add agitate-log-view-kill-revision-expanded cmd, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 60dea993b9 25/67: Add COPYING GNU General Public License, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate a2173cf82c 39/67: Implement conventional commits; refine emoji commits, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate acaa1868d0 30/67: Move log-view section further down, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 2b8a593a5d 38/67: Add missing backronym from README.md, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 52c9968e5f 19/67: Refine agitate-vc-git-push doc string, ELPA Syncer, 2022/09/28