diff options
author | CandyAngel <CandyAngel@web> | 2015-07-21 12:11:45 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2015-07-21 12:11:45 +0000 |
commit | 6cfc512b1ce654ef831903e6ff9a6bf02f28cfb1 (patch) | |
tree | 4318f64ada656d36deefd5f1582511d42a564efe /doc | |
parent | 5c18bbf7a36af696a02a90c11b9290bc00e5a5f5 (diff) |
Added a comment
Diffstat (limited to 'doc')
-rw-r--r-- | doc/todo/Add___39__dir__39___option_to_addurl/comment_2_15a6571d57794c3f1268c7a064e05bef._comment | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/todo/Add___39__dir__39___option_to_addurl/comment_2_15a6571d57794c3f1268c7a064e05bef._comment b/doc/todo/Add___39__dir__39___option_to_addurl/comment_2_15a6571d57794c3f1268c7a064e05bef._comment new file mode 100644 index 000000000..95504b1b2 --- /dev/null +++ b/doc/todo/Add___39__dir__39___option_to_addurl/comment_2_15a6571d57794c3f1268c7a064e05bef._comment @@ -0,0 +1,13 @@ +[[!comment format=mdwn + username="CandyAngel" + subject="comment 2" + date="2015-07-21T12:11:45Z" + content=""" +I was hoping something like tar's *-C*, or unzip's *-d* options would be easy to implement, given that git-annex will already create required directories when using --pathdepth. As far as I can tell, you can't mix --file and --pathdepth.. I'd have to reimplemnt --pathdepth and the directory creation in my script, which while not a major problem in Perl (aside from reinventing a potentially inferior wheel), may be if someone is using shell scripting. + +Maybe this request can be more generalised to *--prefix*? + +Then people could use --prefix to either just prefix the filename or set a directory for it to be put into. I had a look at Command/AddUrl.hs to see how feasible that would be but I'm struggling to follow it (not knowing Haskell yet). + +In the meantime(?), I have made my script remember the original directory it was started in and it cd's about as needed. +"""]] |