diff options
author | Joey Hess <joey@kitenet.net> | 2014-11-03 13:17:55 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-11-03 13:17:55 -0400 |
commit | fe5f014c409a044218b469f99149e69efa6d2a2e (patch) | |
tree | 6d24dbe66a72834747f3e7ab7ce0abbcaa60a0c1 | |
parent | 674ee0c9456ab1e90315c01b156d59ca55767261 (diff) |
comment
-rw-r--r-- | Command/Status.hs | 2 | ||||
-rw-r--r-- | doc/forum/Why_is_git_annex_status_slow__63__/comment_1_a5139c5a9fc94486cf62fc9a9fa9f8d9._comment | 18 |
2 files changed, 19 insertions, 1 deletions
diff --git a/Command/Status.hs b/Command/Status.hs index 0d3efa840..206b6a25e 100644 --- a/Command/Status.hs +++ b/Command/Status.hs @@ -65,7 +65,7 @@ statusDirect f = checkstatus =<< liftIO (catchMaybeIO $ getFileStatus f) where checkstatus Nothing = return $ Just DeletedFile checkstatus (Just s) - -- Git thinks that present direct mode files modifed, + -- Git thinks that present direct mode files are modifed, -- so have to check. | not (isSymbolicLink s) = checkkey s =<< catKeyFile f | otherwise = Just <$> checkNew f diff --git a/doc/forum/Why_is_git_annex_status_slow__63__/comment_1_a5139c5a9fc94486cf62fc9a9fa9f8d9._comment b/doc/forum/Why_is_git_annex_status_slow__63__/comment_1_a5139c5a9fc94486cf62fc9a9fa9f8d9._comment new file mode 100644 index 000000000..f21fcac48 --- /dev/null +++ b/doc/forum/Why_is_git_annex_status_slow__63__/comment_1_a5139c5a9fc94486cf62fc9a9fa9f8d9._comment @@ -0,0 +1,18 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2014-11-03T17:08:50Z" + content=""" +`git status` looks at the index and work tree. In an indirect mode +repository, `git annex status` does too, and is not significantly slower. + +In direct mode, `git annex status` has to look up from git the key +that corresponds to each file in the work tree. This is the main +thing that slows it down. + +(See the code for details, it's quite clear.) + +The best workaround is proably to pass git-annex status a subdirectory +that you're interested in, so it can only look at the contents of that one +directory. +"""]] |