summaryrefslogtreecommitdiff
path: root/doc/todo
diff options
context:
space:
mode:
authorGravatar CandyAngel <CandyAngel@web>2014-12-18 16:49:46 +0000
committerGravatar admin <admin@branchable.com>2014-12-18 16:49:46 +0000
commit9b3236d8ae45a9e4af80ce682759761897aa9ff0 (patch)
treef1f7950c7f08f0d1cc316408bf472956f910fffb /doc/todo
parentbe040fafa8664851c80c8e033a7eab48cf0dc563 (diff)
Diffstat (limited to 'doc/todo')
-rw-r--r--doc/todo/inject_on_import.mdwn21
1 files changed, 21 insertions, 0 deletions
diff --git a/doc/todo/inject_on_import.mdwn b/doc/todo/inject_on_import.mdwn
new file mode 100644
index 000000000..a4f4b1e1e
--- /dev/null
+++ b/doc/todo/inject_on_import.mdwn
@@ -0,0 +1,21 @@
+Would it be possible to add an `--inject` option to import?
+
+Say, for example, I have an annex on computer A which has a subset of files and a directory of files which are potentional duplicates of files in the annex.
+
+I would like to do something like this:
+
+ mkdir ~/annex/import
+ cd ~/annex/import
+ git annex import --deduplicate --inject ~/directory/of/files
+
+This would do the same as `--deduplicate`, except if the file is not present in the annex, it would be injected. For example:
+
+Annex knows about A and B, A is present but B is not.
+$DIR contains A, B and C.
+
+A would be deleted from $DIR due to `--deduplicate`.
+B would be injected into the repo (making it present) due to `--inject`, then deleted from $DIR.
+C would be added to the annex, resulting in this
+
+ $ ls ~/annex/import
+ C