make adding modified files work on crippled filesystems
This commit is contained in:
parent
c2b8db3e69
commit
52902c0945
3 changed files with 18 additions and 2 deletions
|
@ -31,11 +31,14 @@ import Utility.InodeCache
|
|||
def :: [Command]
|
||||
def = [notBareRepo $ command "add" paramPaths seek "add files to annex"]
|
||||
|
||||
{- Add acts on both files not checked into git yet, and unlocked files. -}
|
||||
{- Add acts on both files not checked into git yet, and unlocked files.
|
||||
-
|
||||
- In direct mode, it acts on any files that have changed. -}
|
||||
seek :: [CommandSeek]
|
||||
seek =
|
||||
[ withFilesNotInGit start
|
||||
, withFilesUnlocked start
|
||||
, whenNotDirect $ withFilesUnlocked start
|
||||
, whenDirect $ withFilesMaybeModified start
|
||||
]
|
||||
|
||||
{- The add subcommand annexes a file, generating a key for it using a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue