Highlight the sha1 at the top of a diff buffer.

This commit is contained in:
Phil Jackson 2009-11-02 21:02:18 +00:00
parent 7d4c2f6fc8
commit 87e196ed10

View file

@ -2285,9 +2285,12 @@ insert a line to tell how to insert more of them"
(defvar magit-currently-shown-commit nil) (defvar magit-currently-shown-commit nil)
(defun magit-wash-commit () (defun magit-wash-commit ()
(cond ((search-forward-regexp "^diff" nil t) (when (looking-at "^commit \\([0-9a-fA-F]\\{40\\}\\)")
(goto-char (match-beginning 0)) (add-text-properties (match-beginning 1) (match-end 1)
(magit-wash-diffs)))) '(face magit-log-sha1)))
(search-forward-regexp "^diff" nil t)
(goto-char (match-beginning 0))
(magit-wash-diffs))
(defun magit-refresh-commit-buffer (commit) (defun magit-refresh-commit-buffer (commit)
(magit-create-buffer-sections (magit-create-buffer-sections