From: Joey Hess Date: Tue, 15 Dec 2015 18:02:53 +0000 (-0400) Subject: add: no need to make pass for old unlocked files in v6 X-Git-Tag: archive/raspbian/10.20250416-2+rpi1~1^2~320^2~184^2~49 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a4a813fb0764983ea6e1ae37b7a9ee9665caf266;p=git-annex.git add: no need to make pass for old unlocked files in v6 --- diff --git a/Command/Add.hs b/Command/Add.hs index f4bdc70c98..948a0d94cb 100644 --- a/Command/Add.hs +++ b/Command/Add.hs @@ -33,6 +33,7 @@ import Annex.ReplaceFile import Utility.Tmp import Utility.CopyFile import Annex.InodeSentinal +import Annex.Version import Control.Exception (IOException) @@ -67,7 +68,8 @@ seek o = allowConcurrentOutput $ do go $ withFilesNotInGit (not $ includeDotFiles o) ifM isDirect ( go withFilesMaybeModified - , go withFilesUnlocked + , unlessM versionSupportsUnlockedPointers $ + go withFilesUnlocked ) {- Pass file off to git-add. -}