hugo/hugofs
Bjørn Erik Pedersen 5c41653364 Consolidate the glob case logic
Looking at the code as a whole, we ended up with a little to much "buttons". It turns out that doing case insensitive matching (lower both pattern and strings to match) performs just fine. Or at least, it
gives the penalty to the people who uses mixed case filenames.

```
GetGlob/Default_cache-10                          10.6ns ± 2%    10.6ns ± 1%   ~     (p=0.657 n=4+4)
GetGlob/Filenames_cache,_lowercase_searchs-10     10.6ns ± 2%    10.6ns ± 0%   ~     (p=1.000 n=4+4)
GetGlob/Filenames_cache,_mixed_case_searchs-10    29.7ns ± 1%    29.6ns ± 1%   ~     (p=0.886 n=4+4)
GetGlob/GetGlob-10                                13.7ns ± 1%    13.7ns ± 0%   ~     (p=0.429 n=4+4)

name                                            old alloc/op   new alloc/op   delta
GetGlob/Default_cache-10                           0.00B          0.00B        ~     (all equal)
GetGlob/Filenames_cache,_lowercase_searchs-10      0.00B          0.00B        ~     (all equal)
GetGlob/Filenames_cache,_mixed_case_searchs-10     5.00B ± 0%     5.00B ± 0%   ~     (all equal)
GetGlob/GetGlob-10                                 0.00B          0.00B        ~     (all equal)

name                                            old allocs/op  new allocs/op  delta
GetGlob/Default_cache-10                            0.00           0.00        ~     (all equal)
GetGlob/Filenames_cache,_lowercase_searchs-10       0.00           0.00        ~     (all equal)
GetGlob/Filenames_cache,_mixed_case_searchs-10      1.00 ± 0%      1.00 ± 0%   ~     (all equal)
GetGlob/GetGlob-10
```
2022-09-23 16:19:21 +02:00
..
files Misc depreation updates 2022-01-04 17:10:39 +01:00
glob Consolidate the glob case logic 2022-09-23 16:19:21 +02:00
createcounting_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
decorators.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
fileinfo.go postcss: Fix import error handling 2022-05-15 20:25:25 +02:00
fileinfo_test.go hugofs: Make FileMeta a struct 2021-07-15 17:14:26 +02:00
filename_filter_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
filename_filter_fs_test.go hugofs: Add includeFiles and excludeFiles to mount configuration 2021-10-20 05:00:17 +02:00
filter_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
filter_fs_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
fs.go Revert "Revert "Fix PostProcess regression for hugo server"" 2022-04-18 19:17:27 +02:00
fs_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
glob.go Consolidate the glob case logic 2022-09-23 16:19:21 +02:00
glob_test.go Consolidate the glob case logic 2022-09-23 16:19:21 +02:00
hasbytes_fs.go Support PostProcess for all file types 2022-09-14 19:09:20 +02:00
hashing_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
hashing_fs_test.go all: Format code with gofumpt 2020-12-03 13:12:58 +01:00
language_merge.go Replace all usage of CopyOnWriteFs with OverlayFs 2022-04-10 13:49:31 +02:00
noop_fs.go Replace all usage of CopyOnWriteFs with OverlayFs 2022-04-10 13:49:31 +02:00
nosymlink_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
nosymlink_test.go all: Fix minor typos 2020-12-16 12:11:32 +01:00
rootmapping_fs.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
rootmapping_fs_test.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
slice_fs.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
stacktracer_fs.go Rework the Destination filesystem to make --renderStaticToDisk work 2022-04-08 13:26:17 +02:00
walk.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00
walk_test.go Improve error messages, esp. when the server is running 2022-05-06 19:43:22 +02:00