In .gitattributes, the git-annex-numcopies attribute can be used to control the number of copies to retain of different types of files.
This commit is contained in:
parent
92e5d28ca8
commit
653ad35a9f
14 changed files with 87 additions and 75 deletions
|
@ -32,8 +32,7 @@ start file = isAnnexed file $ \(key, backend) -> do
|
|||
perform :: FilePath -> Key -> Backend -> SubCmdPerform
|
||||
perform file key backend = do
|
||||
-- force backend to always remove
|
||||
Annex.flagChange "force" $ FlagBool True
|
||||
ok <- Backend.removeKey backend key
|
||||
ok <- Backend.removeKey backend key (Just 0)
|
||||
if ok
|
||||
then return $ Just $ cleanup file key
|
||||
else return Nothing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue