Skip to content

Reject branch names that differ only by case#11329

Open
elianddb wants to merge 2 commits into
mainfrom
elian/dolt-36ec145f
Open

Reject branch names that differ only by case#11329
elianddb wants to merge 2 commits into
mainfrom
elian/dolt-36ec145f

Conversation

@elianddb

@elianddb elianddb commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Branch names are matched case-insensitively causing branches that only differ by case to resolve to the same data (e.g., main and Main).

  • Refuse to create branch whose names differs from existing one by case on checkout, branch, and other variants
dolt branch Main
dolt checkout -b Main
dolt branch -c main Main
dolt branch -f Main

@elianddb elianddb changed the title reject branch names that differ only by case Reject branch names that differ only by case Jul 20, 2026
@coffeegoddd

coffeegoddd commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@elianddb DOLT

read_tests from_latency to_latency percent_change
covering_index_scan 2.3 2.3 0.0
groupby_scan 142.39 142.39 0.0
index_join 1.93 1.93 0.0
index_join_scan 1.32 1.34 1.52
index_scan 219.36 219.36 0.0
oltp_point_select 0.25 0.25 0.0
oltp_read_only 5.0 5.0 0.0
select_random_points 0.51 0.51 0.0
select_random_ranges 0.64 0.65 1.56
table_scan 200.47 200.47 0.0
types_table_scan 467.3 467.3 0.0
write_tests from_latency to_latency percent_change
oltp_delete_insert 6.21 6.21 0.0
oltp_insert 3.13 3.13 0.0
oltp_read_write 11.24 11.24 0.0
oltp_update_index 3.3 3.3 0.0
oltp_update_non_index 3.02 3.02 0.0
oltp_write_only 6.32 6.32 0.0
types_delete_insert 6.79 6.79 0.0

@coffeegoddd

Copy link
Copy Markdown
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
c0c6afd ok 5937471
version total_tests
c0c6afd 5937471
correctness_percentage
100.0

@coffeegoddd

coffeegoddd commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

@elianddb DOLT

test_name from_latency_p95 to_latency_p95 percent_change
tpcc-scale-factor-1 45.79 45.79 0.0
test_name from_server_name from_server_version from_tps to_server_name to_server_version to_tps percent_change
tpcc-scale-factor-1 dolt 9e80d3a 52.65 dolt cf30abf 52.63 -0.04

Comment thread go/libraries/doltcore/env/actions/branch.go Outdated
Comment thread go/libraries/doltcore/sqle/dprocedures/dolt_branch.go Outdated
Comment thread go/libraries/doltcore/env/actions/branch.go Outdated
@coffeegoddd

Copy link
Copy Markdown
Contributor

@elianddb DOLT

comparing_percentages
100.000000 to 100.000000
version result total
cf30abf ok 5937471
version total_tests
cf30abf 5937471
correctness_percentage
100.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dolt allows the creation of branches of the same name with different cases, but dolt checkout does not support this

3 participants