summaryrefslogtreecommitdiff
path: root/Command/Add.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-12-15 14:17:00 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-12-15 14:17:00 -0400
commit87f8bb9ef0c701956e42c14e4d667d828e72192b (patch)
tree0bb362a28bdad54d41758a6652d40855e9d023a2 /Command/Add.hs
parent0f7fb02e61eeef646151e0679a6091e0b27dcb84 (diff)
add: In v6 mode, acts on modified files.
Same as was done in direct mode, except in v6 mode add always adds files locked, so
Diffstat (limited to 'Command/Add.hs')
-rw-r--r--Command/Add.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Command/Add.hs b/Command/Add.hs
index a0bcf789e..8cbaf189a 100644
--- a/Command/Add.hs
+++ b/Command/Add.hs
@@ -66,10 +66,9 @@ seek o = allowConcurrentOutput $ do
, startSmall file
)
go $ withFilesNotInGit (not $ includeDotFiles o)
- ifM isDirect
+ ifM (versionSupportsUnlockedPointers <||> isDirect)
( go withFilesMaybeModified
- , unlessM versionSupportsUnlockedPointers $
- go withFilesOldUnlocked
+ , go withFilesOldUnlocked
)
{- Pass file off to git-add. -}