]> git.eshelyaron.com Git - emacs.git/commitdiff
Speed up vc-git-dir-status-files
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 28 Jun 2018 00:03:36 +0000 (03:03 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 28 Jun 2018 00:03:36 +0000 (03:03 +0300)
* lisp/vc/vc-git.el (vc-git-dir-status-goto-stage): Call 'git
ls-files -u' for the ls-files-conflict stage
(https://lists.gnu.org/archive/html/emacs-devel/2018-06/msg00885.html).

lisp/vc/vc-git.el

index c6b08e942f3bb9e2a7494d057e206c68d0cb0de1..11b9b34ff6984f47b15b765bcae8b6bd16504225 100644 (file)
@@ -581,7 +581,7 @@ or an empty string if none."
                        "ls-files" "-z" "-c" "-s" "--"))
       (`ls-files-conflict
        (vc-git-command (current-buffer) 'async files
-                       "ls-files" "-z" "-c" "-s" "--"))
+                       "ls-files" "-z" "-u" "--"))
       (`ls-files-unknown
        (vc-git-command (current-buffer) 'async files
                        "ls-files" "-z" "-o" "--directory"