add check for unclean tree
This commit is contained in:
parent
c77ac11acc
commit
0e7984a793
4 changed files with 20 additions and 6 deletions
|
@ -147,7 +147,7 @@ withStrings a params = return $ map a params
|
|||
withFilesToBeCommitted :: CommandSeekStrings
|
||||
withFilesToBeCommitted a params = do
|
||||
repo <- Annex.gitRepo
|
||||
tocommit <- liftIO $ runPreserveOrder (Git.stagedFiles repo) params
|
||||
tocommit <- liftIO $ runPreserveOrder (Git.stagedFilesNotDeleted repo) params
|
||||
tocommit' <- filterFiles tocommit
|
||||
return $ map a tocommit'
|
||||
withFilesUnlocked :: CommandSeekBackendFiles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue