Add a magit-reflog-head variable for reflog buffers.
This commit is contained in:
parent
abe8a031ff
commit
cb5ca4ce40
1 changed files with 6 additions and 0 deletions
6
magit.el
6
magit.el
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue