branch: elpa/git-commit
commit 2aa907e4d31d7f02eba8373e6df57aa148efe394
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-do-async-shell-command: Use magit-read-file
---
lisp/magit-extras.el | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lisp/magit-extras.el b/lisp/magit-extras.el
index 2a61d33919..7cef0b6fdd 100644
--- a/lisp/magit-extras.el
+++ b/lisp/magit-extras.el
@@ -298,8 +298,7 @@ for a repository."
"Open FILE with `dired-do-async-shell-command'.
Interactively, open the file at point."
(interactive (list (or (magit-file-at-point)
- (completing-read "Act on file: "
- (magit-list-files)))))
+ (magit-read-file "Act on file"))))
(require 'dired-aux)
(dired-do-async-shell-command
(dired-read-shell-command "& on %s: " current-prefix-arg (list file))