jj/docs
Emily 93d76e5d8f str_util: support case‐insensitive string patterns
Partially resolve a 1.5‐year‐old TODO comment.

Add opt‐in syntax for case‐insensitive matching, suffixing the
pattern kind with `-i`. Not every context supports case‐insensitive
patterns (e.g. Git branch fetch settings). It may make sense to make
this the default in at least some contexts (e.g. the commit signature
and description revsets), but it would require some thought to avoid
more confusing context‐sensitivity.

Make `mine()` match case‐insensitively unconditionally, since email
addresses are conventionally case‐insensitive and it doesn’t take
a pattern anyway.

This currently only handles ASCII case folding, due to the complexities
of case‐insensitive Unicode comparison and the `glob` crate’s lack
of support for it. This is unlikely to matter for email addresses,
which very rarely contain non‐ASCII characters, but is unfortunate
for names and descriptions. However, the current matching behaviour is
already seriously deficient for non‐ASCII text due to the lack of any
normalization, so this hopefully shouldn’t be a blocker to adding the
interface. An expository comment has been left in the code for anyone
who wants to try and address this (perhaps a future version of myself).
2024-07-10 05:58:34 +01:00
..
design cleanup: leverage BoxStream/BoxFuture type aliases 2024-06-26 11:34:52 +09:00
technical
branches.md jj git push docs: document safety checks 2024-06-01 11:19:48 -07:00
cli-reference.md docs CLI Reference: make the warning in the beginning less scary 2024-06-15 20:30:40 -07:00
code-of-conduct.md docs: s/socio-economics/socioeconomics/ per codespell suggestion 2024-05-24 11:34:03 +09:00
community_tools.md docs: hyphenate "community-built" 2024-06-20 05:34:02 +09:00
config.md diff: highlight word-level changes in git diffs 2024-07-05 16:07:12 +09:00
config.toml
conflicts.md
contributing.md docs: Formalize our design docs process a bit. 2024-06-30 15:37:40 +02:00
design_doc_blueprint.md docs: Add a Design Doc blueprint. 2024-06-30 15:37:40 +02:00
design_docs.md docs: Add a Design Doc blueprint. 2024-06-30 15:37:40 +02:00
FAQ.md
filesets.md docs: replace jj files -> jj file list 2024-06-24 21:01:55 -07:00
git-comparison.md docs: replace jj files -> jj file list 2024-06-24 21:01:55 -07:00
git-compatibility.md docs: fix converting a repo into a co-located one 2024-05-20 21:39:27 +09:00
github.md
glossary.md docs: fix another missing shell quoting around root() 2024-06-04 21:19:16 +09:00
index.md
install-and-setup.md docs install_and_setup: move Arch Linux after From Source 2024-06-09 10:15:16 -07:00
operation-log.md
related-work.md
revsets.md str_util: support case‐insensitive string patterns 2024-07-10 05:58:34 +01:00
sapling-comparison.md docs: explain that jj was started 3 years before Sapling announcement 2024-06-20 05:24:28 +09:00
templates.md revset, templater: implement arity-based alias overloading 2024-06-14 23:11:29 +09:00
testimonials.md
tutorial.md
windows.md docs: update windows docs to mention minus, update minus docs 2024-06-10 11:47:34 -07:00
working-copy.md