From cb5ca4ce40c83e7301289fc9dd364dc913bf2de3 Mon Sep 17 00:00:00 2001 From: Nathan Weizenbaum Date: Thu, 24 Jun 2010 18:05:50 -0700 Subject: [PATCH] Add a magit-reflog-head variable for reflog buffers. --- magit.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/magit.el b/magit.el index 1d61c7c3..373eb896 100644 --- a/magit.el +++ b/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)