From 2b66492d6e8567cbefeeaa8158fee9d5bf76b87a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 9 Jan 2018 15:36:56 -0400 Subject: Improve startup time for commands that do not operate on remotes And for tab completion, by not unnessessarily statting paths to remotes, which used to cause eg, spin-up of removable drives. Got rid of the remotes member of Git.Repo. This was a bit painful. Remote.Git modifies the list of remotes as it reads their configs, so still need a persistent list of remotes. So, put it in as Annex.gitremotes. It's only populated by getGitRemotes, so commands like examinekey that don't care about remotes won't do so. This commit was sponsored by Jake Vosloo on Patreon. --- Annex/Content/Direct.hs | 1 - 1 file changed, 1 deletion(-) (limited to 'Annex/Content') diff --git a/Annex/Content/Direct.hs b/Annex/Content/Direct.hs index 98323b2b82..46fd327ccc 100644 --- a/Annex/Content/Direct.hs +++ b/Annex/Content/Direct.hs @@ -32,7 +32,6 @@ module Annex.Content.Direct ( import Annex.Common import Annex.Perms import qualified Git -import Utility.Tmp import Logs.Location import Logs.File import Utility.InodeCache -- cgit v1.2.3