diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2018-01-19 22:31:00 +0100 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2018-01-20 13:16:04 +0100 |
| commit | 2f29a21772f384152124bd5c69303e3e71f89fa8 (patch) | |
| tree | 8716be2e0dddaccec76708b9cf4b186ee7c309e2 /lisp/magit-diff.el | |
| parent | 3baeddd4cc02475cafe8be0c5c77f474e391ef36 (diff) | |
Cache visibility for all sections by default
Diffstat (limited to 'lisp/magit-diff.el')
| -rw-r--r-- | lisp/magit-diff.el | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el index 0acaa7f..3d76800 100644 --- a/lisp/magit-diff.el +++ b/lisp/magit-diff.el @@ -999,13 +999,6 @@ for a revision." (expand-file-name (file-name-as-directory module)))) (unless (magit-rev-verify-commit rev) (user-error "%s is not a commit" rev)) - (-when-let (buffer (magit-mode-get-buffer 'magit-revision-mode)) - (with-current-buffer buffer - (let ((prev (car magit-refresh-args))) - (unless (equal rev prev) - (dolist (child (cdr (oref magit-root-section children))) - (when (magit-file-section-p child) - (magit-section-cache-visibility child))))))) (magit-mode-setup #'magit-revision-mode rev nil args files))) ;;;; Setting commands |
