jj/lib/tests
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
..
runner.rs
test_bad_locking.rs
test_commit_builder.rs commit_builder: reset author timestamp on discardable commits 2024-06-29 08:35:53 -05:00
test_commit_concurrent.rs
test_conflicts.rs conflicts: propagate error from conflict materialization 2024-06-17 14:33:29 +09:00
test_default_revset_graph_iterator.rs revset_graph: rename to graph and make generic over graph node type 2024-05-31 02:39:34 +08:00
test_diff_summary.rs
test_git.rs view: remove has_branch() which is called only from tests 2024-06-28 10:29:06 +09:00
test_git_backend.rs
test_gpg.rs
test_id_prefix.rs lib id_prefix: look for divergent changes outside short prefix set 2024-06-29 11:44:26 -07:00
test_index.rs repo/workspace: drop support for old repo formats 2024-06-11 22:03:20 +09:00
test_init.rs
test_load_repo.rs
test_local_working_copy.rs feat: add an option to monitor the filesystem asynchronously 2024-06-16 23:24:22 -04:00
test_local_working_copy_concurrent.rs
test_local_working_copy_sparse.rs
test_merge_trees.rs
test_merged_tree.rs merged_tree: make tree builder attempt to resolve conflicts 2024-06-08 20:29:30 +09:00
test_mut_repo.rs workspace: abandon discardable working copy on forget 2024-07-04 19:37:56 -05:00
test_operations.rs
test_refs.rs jj git push: safety checks in push negotiation, "force-with-lease" 2024-05-28 21:38:26 -07:00
test_revset.rs str_util: support case‐insensitive string patterns 2024-07-10 05:58:34 +01:00
test_rewrite.rs repo: when abandoning a working copy that a merge, recreate it 2024-05-29 06:54:30 -07:00
test_rewrite_transform.rs
test_signing.rs
test_ssh_signing.rs
test_view.rs workspace: abandon discardable working copy on forget 2024-07-04 19:37:56 -05:00
test_workspace.rs