From 07211ad1d80d2be9693c5f37f1bf104c6ce6baa0 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 22 Jan 2015 14:52:52 -0400 Subject: 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) --- doc/git-annex.mdwn | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'doc/git-annex.mdwn') 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. -- cgit v1.2.3