[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/agitate 6604612c32 05/67: Add agitate-git-grep command
From: |
ELPA Syncer |
Subject: |
[elpa] externals/agitate 6604612c32 05/67: Add agitate-git-grep command |
Date: |
Wed, 28 Sep 2022 16:57:25 -0400 (EDT) |
branch: externals/agitate
commit 6604612c32af5d686515c6a4f6d0771cbfa17839
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add agitate-git-grep command
---
agitate.el | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/agitate.el b/agitate.el
index 59c79d29cf..c4c83cc432 100644
--- a/agitate.el
+++ b/agitate.el
@@ -77,5 +77,15 @@ file extension. Else omit it."
"Substitute for `vc-git-push' with the same meaning for PROMPT."
(vc-git--pushpull "push" prompt (unless prompt
`(,(agitate--vc-git-prompt-remote)))))
+;;;###autoload
+(defun agitate-git-grep (regexp)
+ "Run `git-grep(1)' for REGEXP in `vc-root-dir'.
+This is a simple wrapper around `vc-git-grep' to streamline the
+basic task of searching for a regexp in the current Git
+repository. Use the original `vc-git-grep' for its other
+features."
+ (interactive (list (read-regexp "git-grep: " nil 'vc-git-history)))
+ (vc-git-grep regexp "*" (vc-root-dir)))
+
(provide 'agitate)
;;; agitate.el ends here
- [elpa] branch externals/agitate created (now f736eb51a7), ELPA Syncer, 2022/09/28
- [elpa] externals/agitate a3ee8251d4 01/67: Start recording file history, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 93b2674f70 07/67: Add agitate-diff-refine-cycle command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 16a2ea1cfe 13/67: Simplify agitate-diff-refine-cycle messages, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 6604612c32 05/67: Add agitate-git-grep command,
ELPA Syncer <=
- [elpa] externals/agitate 0ee85a971b 11/67: Add agitate-diff-buffer-or-file command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate d6aaced969 10/67: Actually depend on Emacs 27.1, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate e7b6acb8f7 12/67: Limit agitate-diff-refine-cycle to diff-mode, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 43027aefb9 16/67: Add agitate-diff-narrow-dwim command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 4baa368ffd 02/67: Depend on Emacs 29, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 417539dc73 03/67: Add agitate-log-edit-insert-file-name command, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 1f35cecc20 17/67: Add agitate-diff-kill-dwim prototype, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 839892328b 28/67: Add missing backronym, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate 4ed8d553ba 22/67: Record TODO for vc-git-push replacements, ELPA Syncer, 2022/09/28
- [elpa] externals/agitate bb94713469 40/67: Fix formatting of inline code in the manual, ELPA Syncer, 2022/09/28