Skip to content

Commit

Permalink
Use guess-branch and default-rev wherever we ask for a branch or a rev.
Browse files Browse the repository at this point in the history
Signed-off-by: Rémi Vanicat <vanicat@debian.org>
  • Loading branch information
vanicat authored and philjackson committed May 5, 2010
1 parent b6d7f36 commit 179f1b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions magit.el
Expand Up @@ -2608,7 +2608,7 @@ With a prefix-arg, the merge will be squashed.
(interactive)
(let ((info (magit-rebase-info)))
(if (not info)
(let ((rev (magit-read-rev "Rebase to")))
(let ((rev (magit-read-rev "Rebase to" (magit-guess-branch))))
(if rev
(magit-run-git "rebase" (magit-rev-to-git rev))))
(let ((cursor-in-echo-area t)
Expand Down Expand Up @@ -3537,7 +3537,7 @@ With a non numeric prefix ARG, show all entries"
:keymap magit-reflog-mode-map)

(defun magit-reflog (head)
(interactive (list (magit-read-rev "Reflog of" "HEAD")))
(interactive (list (magit-read-rev "Reflog of" (or (magit-guess-branch) "HEAD"))))
(if head
(let* ((topdir (magit-get-top-dir default-directory))
(args (magit-rev-to-git head)))
Expand Down Expand Up @@ -3579,7 +3579,7 @@ With a non numeric prefix ARG, show all entries"
(magit-diff-mode t)))))

(defun magit-diff-working-tree (rev)
(interactive (list (magit-read-rev "Diff with (default HEAD)")))
(interactive (list (magit-read-rev "Diff with" (magit-default-rev))))
(magit-diff (or rev "HEAD")))

(defun magit-diff-with-mark ()
Expand Down

0 comments on commit 179f1b9

Please sign in to comment.