Skip to content

Commit

Permalink
add latest visited branch as a fallback in magit-guess-branch
Browse files Browse the repository at this point in the history
  • Loading branch information
kidd committed Nov 19, 2012
1 parent 4571232 commit 59371ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion magit.el
Expand Up @@ -3888,7 +3888,11 @@ With prefix, forces the move even if NEW already exists.
((wazzup commit) ((wazzup commit)
(magit-section-info (magit-section-parent item))) (magit-section-info (magit-section-parent item)))
((commit) (magit-name-rev (substring info 0 magit-sha1-abbrev-length))) ((commit) (magit-name-rev (substring info 0 magit-sha1-abbrev-length)))
((wazzup) info))) ((wazzup) info)
(t (match-string 1 (find-if
(lambda (x)
(string-match "moving from \\(.*\\) to" x))
(magit-git-lines "reflog"))))))


;;; Remotes ;;; Remotes


Expand Down

0 comments on commit 59371ab

Please sign in to comment.