annex.maxextensionlength for view
authorJoey Hess <joeyh@joeyh.name>
Fri, 24 Mar 2023 17:53:51 +0000 (13:53 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 24 Mar 2023 18:01:38 +0000 (14:01 -0400)
commit2b5fa091e2c10041d92eddda55225dc4a564e66f
treefe6094b02aff9078c0c3743725a35931da6e01cf
parent70a9e995b865877d8d0af96dc7c514020247e291
annex.maxextensionlength for view

view: Support annex.maxextensionlength when generating filenames for the
view branch.

Note that refining an existing view will reuse the extension length that was
configured when initially constructing the view. This is necessarily the case
because it reuses the filenames.

Also view files used to have all extensions at the end, no matter how
many there were. Since annex.maxextensionlength's documentation includes
that it's limited to 2 extensions, I made it consistent with that.

Sponsored-by: k0ld on Patreon
Annex/View.hs
Annex/View/ViewedFile.hs
CHANGELOG
Utility/Path.hs
doc/git-annex-view.mdwn
doc/git-annex.mdwn
doc/todo/Configuring_metadata_view_filenames/comment_8_2bcfc677da72637f34904b84fdd95c10._comment [new file with mode: 0644]