diff options
author | Joey Hess <joeyh@joeyh.name> | 2018-03-05 11:25:01 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2018-03-05 11:25:01 -0400 |
commit | da3f2ee6994daafe58b890c3fb87ccf5ef61f3f2 (patch) | |
tree | 661efe702c741449882fd21e1840dae1b1548253 /CHANGELOG | |
parent | df575f0db7c945a26735d0944b05c7e989cdfcda (diff) |
Improve SHA*E extension extraction code
Do not treat parts of the filename that contain punctuation or other
non-alphanumeric characters as extensions. Before, such characters were
filtered out.
Note that in 38bd7ca3cce455c20edcee656c706939087c6a69 "foo.ba__________r"
was munged to ".bar" and so incorrectly treated as an extension. That was
fixed by changing the filter order, but not allowing punctuation seems a
better fix.
This assumes that extensions containing punctuation are rare. "_" seems the
most likely character; I used it in ikiwiki "._comment" files. But I can't
recall seeing it anywhere else. It certianly seems that no commonly used
extensions contain punctuation. If git-annex doesn't treat "._comment"
as an extension, it's not likely to break software that expects to see that
extension like some software expects to see .epub or .mp3.
This commit was sponsored by Jack Hill on Patreon.
Diffstat (limited to 'CHANGELOG')
-rw-r--r-- | CHANGELOG | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -3,6 +3,9 @@ git-annex (6.20180228) UNRELEASED; urgency=medium * Support exporttree=yes for rsync special remotes. * Dial back optimisation when building on arm, which prevents ghc and llc from running out of memory when optimising some files. + * Improve SHA*E extension extraction code to not treat parts of the + filename that contain punctuation or other non-alphanumeric characters + as extensions. Before, such characters were filtered out. -- Joey Hess <id@joeyh.name> Wed, 28 Feb 2018 11:53:03 -0400 |