Stop diffless commits tricking magit into an infinite loop.
This commit is contained in:
parent
4ad8f773af
commit
82d9943643
1 changed files with 3 additions and 3 deletions
6
magit.el
6
magit.el
|
@ -2318,9 +2318,9 @@ insert a line to tell how to insert more of them"
|
|||
(when (looking-at "^commit \\([0-9a-fA-F]\\{40\\}\\)")
|
||||
(add-text-properties (match-beginning 1) (match-end 1)
|
||||
'(face magit-log-sha1)))
|
||||
(search-forward-regexp "^diff" nil t)
|
||||
(goto-char (match-beginning 0))
|
||||
(magit-wash-diffs))
|
||||
(when (search-forward-regexp "^diff" nil t)
|
||||
(goto-char (match-beginning 0))
|
||||
(magit-wash-diffs)))
|
||||
|
||||
(defun magit-refresh-commit-buffer (commit)
|
||||
(magit-create-buffer-sections
|
||||
|
|
Loading…
Reference in a new issue