optimise direct mode startup scan
A recent change made existing symlinks be re-staged. That does not need to be done during the startup scan though.
This commit is contained in:
parent
46529c0129
commit
a9081ae473
1 changed files with 6 additions and 3 deletions
|
@ -203,9 +203,12 @@ onAddDirect symlinkssupported matcher file fs = do
|
||||||
- really modified, but it might have
|
- really modified, but it might have
|
||||||
- just been deleted and been put back,
|
- just been deleted and been put back,
|
||||||
- so it symlink is restaged to make sure. -}
|
- so it symlink is restaged to make sure. -}
|
||||||
( do
|
( ifM (scanComplete <$> getDaemonStatus)
|
||||||
link <- liftAnnex $ inRepo $ gitAnnexLink file key
|
( do
|
||||||
addLink file link (Just key)
|
link <- liftAnnex $ inRepo $ gitAnnexLink file key
|
||||||
|
addLink file link (Just key)
|
||||||
|
, noChange
|
||||||
|
)
|
||||||
, guardSymlinkStandin (Just key) $ do
|
, guardSymlinkStandin (Just key) $ do
|
||||||
debug ["changed direct", file]
|
debug ["changed direct", file]
|
||||||
liftAnnex $ changedDirect key file
|
liftAnnex $ changedDirect key file
|
||||||
|
|
Loading…
Reference in a new issue