aboutsummaryrefslogtreecommitdiff
path: root/doc/todo/wishlist__58___do_not_import_new_files.mdwn
blob: 6a0225f38b72f7845b01b7e8b97f03a82a0f793e (plain)
1
2
3
4
5
6
7
8
9
10
[[!meta title="mass reinject of any known content from a directory"]]

Right now `git annex import DIR/*` will import all the files in DIR, both those that are already known to git-annex and those that are new. Using the option `--skip-duplicates` one can import only new files that are in DIR but unknown to git-annex.

It would be nice if there were an opposite `--only-duplicates` option that could be used to import only the files that are already known to git, ignoring the new files in DIR.

PS: it would also be nice to have aliases like `--only-new-files` and `--skip-new-files` for `--skip-duplicates` and `--only-duplicates`.

> I think that either `git annex reinject --known` or `git annex import
> --reinject-known` can handle this use case. So, [[done]] --[[Joey]]