Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions e2wm-vcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@
(defun e2wm:def-plugin-magit-branches (frame wm winfo)
(e2wm:def-plugin-vcs-with-window
'magit-get-top-dir
(if (fboundp 'magit-branch-manager)
(lambda (dir topdir) (magit-branch-manager))
(lambda (dir topdir) (magit-show-branches)))
(lambda (dir topdir)
(dolist (f '(magit-show-branches magit-branch-manager magit-show-refs-head))
(when (fboundp f)
(funcall f))))
(lambda () (e2wm:def-plugin-vcs-na-buffer "Git N/A"))))

(e2wm:plugin-register 'magit-branches
Expand Down