Untracked tables should be preserved across dolt reset --hard. When an untracked table's column tags collide with a column in the target commit, the table is silently dropped. dolt rebase is affected through the same code path.
dolt init
dolt checkout -b feat
dolt sql -q "CREATE TABLE bar (code varchar(64) PRIMARY KEY);"
dolt add . && dolt commit -m "add bar"
dolt checkout main
dolt sql -q "CREATE TABLE users (name varchar(64) PRIMARY KEY);"
dolt sql -q "INSERT INTO users VALUES ('alice');"
dolt reset --hard feat
dolt sql -q "SELECT * FROM users"
Expected: alice
Got: table not found: users
Untracked tables should be preserved across
dolt reset --hard. When an untracked table's column tags collide with a column in the target commit, the table is silently dropped.dolt rebaseis affected through the same code path.Expected:
aliceGot:
table not found: users