annex.maxextensions configuration
Controls how many filename extensions to preserve. Sponsored-by: the NIH-funded NICEMAN (ReproNim TR&D3) project
This commit is contained in:
parent
b700c48b15
commit
c410b2bb73
9 changed files with 51 additions and 22 deletions
|
@ -873,8 +873,16 @@ repository, using [[git-annex-config]]. See its man page for a list.)
|
|||
and also when generating a view branch.
|
||||
|
||||
The default length is 4, which allows extensions like "jpeg". The dot before
|
||||
the extension is not counted part of its length. At most two extensions
|
||||
at the end of a filename will be preserved, e.g. .gz or .tar.gz .
|
||||
the extension is not counted part of its length.
|
||||
|
||||
* `annex.maxextensions`
|
||||
|
||||
Maximum number of filename extensions to preserve when using a backend
|
||||
that preserves filename extensions, and also when generating a view
|
||||
branch.
|
||||
|
||||
The default is 2, which allows for compound extensions like ".tar.gz".
|
||||
When set to 1, it will only preserve the last extension, eg ".gz".
|
||||
|
||||
* `annex.diskreserve`
|
||||
|
||||
|
|
|
@ -12,3 +12,5 @@ Just throwing against the wall to see if sticks
|
|||
|
||||
[[!meta author=yoh]]
|
||||
[[!tag projects/repronim]]
|
||||
|
||||
> added annex.maxextensions config, [[done]] --[[Joey]]
|
||||
|
|
|
@ -9,7 +9,7 @@ extension. For a .mkv file, I'd guess most video players don't care about
|
|||
the extension.
|
||||
|
||||
annex.maxextensionlength won't help here, but I think it makes sense to add
|
||||
an analagous annex.maxextensioncount which would default to 2 (as it
|
||||
an analagous annex.maxextensions which would default to 2 (as it
|
||||
currently does to handle .tar.gz) but you could set to 1.
|
||||
|
||||
It might also be a reasonable argument that filename extensions are not
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue