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

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

[elpa] externals/ivy 88715a5e1e 04/10: counsel.el (counsel-git-history):


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy 88715a5e1e 04/10: counsel.el (counsel-git-history): Add
Date: Sun, 11 Sep 2022 08:15:33 -0400 (EDT)

branch: externals/ivy
commit 88715a5e1eea05692b9bd112316881c33804567f
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    counsel.el (counsel-git-history): Add
---
 counsel.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/counsel.el b/counsel.el
index caf595d971..aa439e70a8 100644
--- a/counsel.el
+++ b/counsel.el
@@ -1305,6 +1305,9 @@ Like `locate-dominating-file', but DIR defaults to
      "\0"
      t)))
 
+(defvar counsel-git-history nil
+  "History for `counsel-git'.")
+
 ;;;###autoload
 (defun counsel-git (&optional initial-input)
   "Find file in the current Git repository.
@@ -1315,6 +1318,7 @@ INITIAL-INPUT can be given as the initial minibuffer 
input."
     (ivy-read "Find file: " (counsel-git-cands default-directory)
               :initial-input initial-input
               :action #'counsel-git-action
+              :history 'counsel-git-history
               :caller 'counsel-git)))
 
 (ivy-configure 'counsel-git



reply via email to

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