From 8a37b3c4ab9be1561bfb739f2624af06c7637241 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Thu, 10 Jun 2010 21:22:40 -0700 Subject: [PATCH] Add history for magit-read-rev. --- magit.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/magit.el b/magit.el index c03ad68d..014f4c47 100644 --- a/magit.el +++ b/magit.el @@ -302,6 +302,9 @@ Many Magit faces inherit from this one by default." (defvar magit-completing-read 'completing-read "Function to be called when requesting input from the user.") +(defvar magit-read-rev-history nil + "The history of inputs to `magit-read-rev'.") + (defvar magit-omit-untracked-dir-contents nil "When non-nil magit will only list an untracked directory, not its contents.") @@ -587,7 +590,7 @@ return nil." (format "%s: " prompt))) (interesting-refs (magit-list-interesting-refs)) (reply (funcall magit-completing-read prompt interesting-refs - nil nil nil nil def)) + nil nil nil 'magit-read-rev-history def)) (rev (or (cdr (assoc reply interesting-refs)) reply))) (if (string= rev "") nil