summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-07-21 12:18:03 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-07-21 12:18:03 -0400
commit20013c9918fa48382a76f960defb5688d95fcbe4 (patch)
treeada9f96de62fd3fe80dd583291394bc94e713c60
parentf9f5b3f07290ead3793c3bb2afc51a7c382b3059 (diff)
parent6cfc512b1ce654ef831903e6ff9a6bf02f28cfb1 (diff)
Merge branch 'master' of ssh://git-annex.branchable.com
-rw-r--r--doc/todo/Add___39__dir__39___option_to_addurl/comment_2_15a6571d57794c3f1268c7a064e05bef._comment13
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.
+"""]]