Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add latest visited branch as a fallback in magit-guess-branch

  • Loading branch information...
commit 59371abc74f0f4332b6c54d5e41cfb4817f237d2 1 parent 4571232
@kidd authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 magit.el
View
6 magit.el
@@ -3888,7 +3888,11 @@ With prefix, forces the move even if NEW already exists.
((wazzup commit)
(magit-section-info (magit-section-parent item)))
((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
Please sign in to comment.
Something went wrong with that request. Please try again.