move comment
This commit is contained in:
parent
da62edb42a
commit
ab076b2e81
1 changed files with 6 additions and 7 deletions
|
@ -236,6 +236,11 @@ onAdd file = do
|
||||||
{- A symlink might be an arbitrary symlink, which is just added.
|
{- A symlink might be an arbitrary symlink, which is just added.
|
||||||
- Or, if it is a git-annex symlink, ensure it points to the content
|
- Or, if it is a git-annex symlink, ensure it points to the content
|
||||||
- before adding it.
|
- before adding it.
|
||||||
|
-
|
||||||
|
- This is often called on symlinks that are already staged correctly.
|
||||||
|
- A symlink may have been deleted and being re-added, or added when
|
||||||
|
- the watcher was not running; so it always stages even symlinks that
|
||||||
|
- already exist.
|
||||||
-}
|
-}
|
||||||
onAddSymlink :: Handler
|
onAddSymlink :: Handler
|
||||||
onAddSymlink file = go =<< Backend.lookupFile file
|
onAddSymlink file = go =<< Backend.lookupFile file
|
||||||
|
@ -250,13 +255,7 @@ onAddSymlink file = go =<< Backend.lookupFile file
|
||||||
liftIO $ createSymbolicLink link file
|
liftIO $ createSymbolicLink link file
|
||||||
addlink link
|
addlink link
|
||||||
)
|
)
|
||||||
{- This is often called on symlinks that are already staged
|
{- For speed, tries to reuse the existing blob for
|
||||||
- correctly, especially during the startup scan. A symlink
|
|
||||||
- may have been deleted and re-added, or added when
|
|
||||||
- the watcher was not running; so it always stages
|
|
||||||
- even symlinks that already exist.
|
|
||||||
-
|
|
||||||
- So for speed, tries to reuse the existing blob for
|
|
||||||
- the symlink target. -}
|
- the symlink target. -}
|
||||||
addlink link = do
|
addlink link = do
|
||||||
v <- catObjectDetails $ Ref $ ':':file
|
v <- catObjectDetails $ Ref $ ':':file
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue