aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-09-19 14:26:03 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-09-19 14:26:03 -0400
commit52e55a040a29b03bc91482b03882cbf30f21330f (patch)
tree0105e9e86311985138653a4ed1e8673405cd9785
parent7d0d4d5b6ab2fd23c664742e5a1e7ed019b0c40d (diff)
export --fast sets up but does not populate export
sync --content finishes
-rw-r--r--Command/Export.hs3
-rw-r--r--doc/git-annex-export.mdwn6
2 files changed, 8 insertions, 1 deletions
diff --git a/Command/Export.hs b/Command/Export.hs
index 0afcc3af1..f2bbcaf01 100644
--- a/Command/Export.hs
+++ b/Command/Export.hs
@@ -82,7 +82,8 @@ seek o = do
db <- openDb (uuid r)
ea <- exportActions r
changeExport r ea db new
- void $ fillExport r ea db new
+ unlessM (Annex.getState Annex.fast) $
+ void $ fillExport r ea db new
closeDb db
-- | Changes what's exported to the remote. Does not upload any new
diff --git a/doc/git-annex-export.mdwn b/doc/git-annex-export.mdwn
index 98fb40c57..4807a6434 100644
--- a/doc/git-annex-export.mdwn
+++ b/doc/git-annex-export.mdwn
@@ -50,6 +50,12 @@ And, git-annex will never trust an export to retain the content of a key.
the branch. `git annex sync --content` and the git-annex assistant
will update exports when it commits to the branch they are tracking.
+* `--fast`
+
+ This sets up an export of a tree, but avoids any expensive file uploads to
+ the remote. You can later run `git annex sync --content` to upload
+ the files to the export.
+
# EXAMPLE
git annex initremote myexport type=directory directory=/mnt/myexport \