Speed up washing of untracked files a bit.
This commit is contained in:
parent
6838ae135c
commit
60ae735a10
1 changed files with 8 additions and 1 deletions
9
magit.el
9
magit.el
|
@ -1454,7 +1454,14 @@ Please see the manual for a complete description of Magit.
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
(defun magit-wash-untracked-files ()
|
(defun magit-wash-untracked-files ()
|
||||||
(magit-wash-sequence #'magit-wash-untracked-file))
|
;; Setting magit-old-top-section to nil speeds up washing: no time
|
||||||
|
;; is wasted looking up the old visibility, which doesn't matter for
|
||||||
|
;; untracked files.
|
||||||
|
;;
|
||||||
|
;; XXX - speed this up in a more general way.
|
||||||
|
;;
|
||||||
|
(let ((magit-old-top-section nil))
|
||||||
|
(magit-wash-sequence #'magit-wash-untracked-file)))
|
||||||
|
|
||||||
(defun magit-insert-untracked-files ()
|
(defun magit-insert-untracked-files ()
|
||||||
(magit-git-section 'untracked "Untracked files:"
|
(magit-git-section 'untracked "Untracked files:"
|
||||||
|
|
Loading…
Reference in a new issue