summaryrefslogtreecommitdiff
path: root/doc/git-annex.mdwn
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-01-22 14:52:52 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-01-22 14:52:52 -0400
commit07211ad1d80d2be9693c5f37f1bf104c6ce6baa0 (patch)
tree43fedb306be22459b548589afa08efd5c64f636a /doc/git-annex.mdwn
parentc222a65270a95a59307377f81522a46d95db6e9a (diff)
addurl: When a Content-Disposition header suggests a filename to use, addurl will consider using it, if it's reasonable and doesn't conflict with an existing file. (--file overrides this)
Diffstat (limited to 'doc/git-annex.mdwn')
-rw-r--r--doc/git-annex.mdwn6
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/git-annex.mdwn b/doc/git-annex.mdwn
index c92208e5c..c4586ba1d 100644
--- a/doc/git-annex.mdwn
+++ b/doc/git-annex.mdwn
@@ -218,8 +218,10 @@ subdirectories).
is there at a future point, specify `--relaxed`. (Implies `--fast`.)
Normally the filename is based on the full url, so will look like
- "www.example.com_dir_subdir_bigfile". For a shorter filename, specify
- `--pathdepth=N`. For example, `--pathdepth=1` will use "dir/subdir/bigfile",
+ "www.example.com_dir_subdir_bigfile". In some cases, addurl is able to
+ come up with a better filename based on other information. Or, for a
+ shorter filename, specify `--pathdepth=N`. For example,
+ `--pathdepth=1` will use "dir/subdir/bigfile",
while `--pathdepth=3` will use "bigfile". It can also be negative;
`--pathdepth=-2` will use the last two parts of the url.