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

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

[elpa] externals/agitate f29bc8e32a 21/67: Reorder some functions


From: ELPA Syncer
Subject: [elpa] externals/agitate f29bc8e32a 21/67: Reorder some functions
Date: Wed, 28 Sep 2022 16:57:26 -0400 (EDT)

branch: externals/agitate
commit f29bc8e32a54836ba1e5d3f3665c7ee0309971d6
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Reorder some functions
---
 agitate.el | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/agitate.el b/agitate.el
index 84cce76e13..8e99de5ba2 100644
--- a/agitate.el
+++ b/agitate.el
@@ -200,6 +200,16 @@ file extension.  Else omit it."
 
 ;;;; Commands for vc-git (Git backend for the Version Control framework)
 
+;;;###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)))
+
 (defun agitate--vc-git-prompt-remote ()
   "Helper prompt for `agitate-git-push'."
   (when-let ((remotes (process-lines vc-git-program "remote")))
@@ -217,15 +227,5 @@ To use this function add it as an override advice to
 `vc-git-push'."
   (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



reply via email to

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