Use (magit-read-rev) for "Interactively rebase to:" message

Now it has tab completion like the switch branch command and others
which use (magit-read-rev).

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
This commit is contained in:
Ævar Arnfjörð Bjarmason 2010-05-31 17:06:52 +00:00
parent fb5e8eb382
commit 40dc79f33b

View file

@ -3919,7 +3919,7 @@ Return values:
(unwind-protect
(magit-run-git-async "rebase" "-i"
(or (and commit (concat commit "^"))
(read-string "Interactively rebase to: ")))
(magit-read-rev "Interactively rebase to" (magit-guess-branch))))
(if old-editor
(setenv "GIT_EDITOR" old-editor)))))