aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-03-20 16:00:06 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-03-20 16:00:48 -0400
commit11025aaa449495db399cd02cafc15cec5923281c (patch)
tree6af74adabd1e5fa7cab47df300d87f2b5612c023 /doc
parentfbf69ca7b3eee84c2284d260aa70f106ff9d6d57 (diff)
sync --content-of=path
For when you want to sync only some files' contents, not the whole working tree. This commit was sponsored by Anthony DeRobertis on Patreon.
Diffstat (limited to 'doc')
-rw-r--r--doc/git-annex-sync.mdwn8
-rw-r--r--doc/todo/sync_content_of_a_single_directory_or_file.mdwn3
2 files changed, 11 insertions, 0 deletions
diff --git a/doc/git-annex-sync.mdwn b/doc/git-annex-sync.mdwn
index e29698c4b..97c63d340 100644
--- a/doc/git-annex-sync.mdwn
+++ b/doc/git-annex-sync.mdwn
@@ -73,6 +73,14 @@ by running "git annex sync" on the remote.
This behavior can be overridden by configuring the preferred content
of a repository. See [[git-annex-preferred-content]](1).
+* `--content-of=path` `-C path`
+
+ While --content operates on all annexed files in the work tree,
+ --content-of allows limiting the transferred files to ones in a given
+ location.
+
+ This option can be repeated multiple times with different paths.
+
* `--all`
This option, when combined with `--content`, makes all available versions
diff --git a/doc/todo/sync_content_of_a_single_directory_or_file.mdwn b/doc/todo/sync_content_of_a_single_directory_or_file.mdwn
index bbb036ff6..90eb3b432 100644
--- a/doc/todo/sync_content_of_a_single_directory_or_file.mdwn
+++ b/doc/todo/sync_content_of_a_single_directory_or_file.mdwn
@@ -9,3 +9,6 @@ currently takes. Perhaps `git annex sync --dir==thedir`, which
automatically enables content syncing?
--[[Joey]]
+
+> Going with --content-of, so it's clear it enables content syncing.
+> With a -C short option. [[done]] --[[Joey]]