Add a magit-reflog-head variable for reflog buffers.

This commit is contained in:
Nathan Weizenbaum 2010-06-24 18:05:50 -07:00
parent abe8a031ff
commit cb5ca4ce40

View file

@ -3665,7 +3665,13 @@ level commits."
;;; Reflog
(defvar magit-reflog-head nil
"The HEAD of the reflog in the current buffer.
This is only non-nil in reflog buffers.")
(make-variable-buffer-local 'magit-reflog-head)
(defun magit-refresh-reflog-buffer (head args)
(setq magit-reflog-head head)
(magit-create-log-buffer-sections
(magit-git-section 'reflog
(format "Local history of head %s" head)