Speed up washing of untracked files a bit.

This commit is contained in:
Marius Vollmer 2009-08-17 20:07:09 +03:00
parent 6838ae135c
commit 60ae735a10

View file

@ -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:"