aboutsummaryrefslogtreecommitdiff
path: root/doc/git-annex-fromkey.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-05-22 22:41:36 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-05-22 22:41:36 -0400
commit280b59024768689feed03db4e7069e12f9605825 (patch)
tree2350b2747d669d44ebaafdb2b7fefe5b550b558b /doc/git-annex-fromkey.mdwn
parent0c2026f3d4109e810b050090b44bb406b6a11954 (diff)
fromkey, registerurl: Allow urls to be specified instead of keys, and generate URL keys.
This is especially useful because the caller doesn't need to generate valid url keys, which involves some escaping of characters, and may involve taking a md5sum of the url if it's too long.
Diffstat (limited to 'doc/git-annex-fromkey.mdwn')
-rw-r--r--doc/git-annex-fromkey.mdwn6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/git-annex-fromkey.mdwn b/doc/git-annex-fromkey.mdwn
index 1126e823e..461f42eb6 100644
--- a/doc/git-annex-fromkey.mdwn
+++ b/doc/git-annex-fromkey.mdwn
@@ -15,6 +15,12 @@ If the key and file are not specified on the command line, they are
instead read from stdin. Any number of lines can be provided in this
mode, each containing a key and filename, separated by a single space.
+Normally the key is a git-annex formatted key. However, to make it easier
+to use this to add urls, if the key cannot be parsed as a key, and is a
+valid url, an URL key is constructed from the url. Note that this does not
+register the url as a location of the key; use [[git-annex-registerurl]](1)
+to do that.
+
# OPTIONS
* `--force`