summaryrefslogtreecommitdiff
path: root/doc/todo/wishlist:___96__git_annex_import__96___--_An_easy_way_to_get_data_into_an_annex/comment_1_b9fd1bfaf9a3d238fdb7bc9c2d75fe5f._comment
blob: ff9030c99da45b379e6909a788b69303233b2be7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
[[!comment format=mdwn
 username="http://joeyh.name/"
 ip="4.153.254.222"
 subject="comment 1"
 date="2013-07-07T18:09:20Z"
 content="""
This is such a good idea that I went into the time machine and arranged for it to be implemented in June 2012:

<pre>
       import [path ...]
              Moves files from somewhere outside the git work‐
              ing copy, and adds them to the annex. Individual
              files to import can be specified.  If  a  direc‐
              tory is specified, all files in it are imported,
              and any subdirectory structure inside it is pre‐
              served.

               git annex import /media/camera/DCIM/
</pre>

I don't see much use for `--copy-only` though. so did not implement it them (also I needed to spend some of my time at the race track). It seems to me that using `--copy-only` as you describe it would do everything except for add the files to git. You can get the same behavior by using `git annex import`, which only stages the new files but does not commit them, and then moving files around and running `git annex add` on them, followed by committing.
"""]]