Enable to filter returned branches according to their name in `lookup_snapshot`.
Using the optional `branch_name_includes` parameter will only return branches
whose names contain a substring in the provided list.
Using the optional `branch_name_excludes` parameter will not return branches
whose names contain a substring in the provided list.
Related to T2782
Depends on D4615