diff options
author | 2016-01-07 17:39:59 -0400 | |
---|---|---|
committer | 2016-01-07 17:48:04 -0400 | |
commit | baa5f0ff25f3a3833c46b1e0d60242bd9066eaae (patch) | |
tree | 7f32eb02c862c5064fe8b71b1c7cffe96ea34998 /Command/Add.hs | |
parent | a3a92b330d11737fbc46a5af4ed16190f4291d7c (diff) |
avoid confusing git with a modified ctime in clean filter
Linking the file to the tmp dir was not necessary in the clean
filter, and it caused the ctime to change, which caused git to think
the file was changed. This caused git status to get slow as it kept
re-cleaning unchanged files.
Diffstat (limited to 'Command/Add.hs')
-rw-r--r-- | Command/Add.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Command/Add.hs b/Command/Add.hs index 8a7db0a91..b88dc52f7 100644 --- a/Command/Add.hs +++ b/Command/Add.hs @@ -115,7 +115,11 @@ start file = ifAnnexed file addpresent add perform :: FilePath -> CommandPerform perform file = do lockingfile <- not <$> isDirect - lockDown lockingfile file >>= ingest >>= go + let cfg = LockDownConfig + { lockingFile = lockingfile + , hardlinkFileTmp = True + } + lockDown cfg file >>= ingest >>= go where go (Just key, cache) = next $ cleanup file key cache True go (Nothing, _) = stop |