--force will cause add, etc, to operate on ignored files.

This commit is contained in:
Joey Hess 2011-06-29 11:42:00 -04:00
parent fb7663ceb8
commit b3aaf980e4
6 changed files with 23 additions and 9 deletions

View file

@ -143,7 +143,8 @@ withFilesMissing a params = do
withFilesNotInGit :: CommandSeekBackendFiles
withFilesNotInGit a params = do
repo <- Annex.gitRepo
newfiles <- liftIO $ runPreserveOrder (Git.notInRepo repo) params
force <- Annex.getState Annex.force
newfiles <- liftIO $ runPreserveOrder (Git.notInRepo repo force) params
newfiles' <- filterFiles newfiles
backendPairs a newfiles'
withWords :: CommandSeekWords