Closed as not planned
Description
dolt reset --soft
should move HEAD to the destination address, but the WORKING and STAGED heads should stay the same. Currently the STAGED head is also moved to the destination address:
> dolt init
Successfully initialized dolt data repository.
> dolt sql -q "Create table xy (x int primary key, y int)"
> dolt add xy
> dolt commit -m "add xy"
commit u4mp02cb4freimq2217fus2pig558abp (HEAD -> main)
Author: Max Hoffman <max@dolthub.com>
Date: Tue Nov 12 10:16:45 -0800 2024
add xy
> dolt reset --soft head~
> dolt status
On branch main
Untracked tables:
(use "dolt add <table>" to include in what will be committed)
new table: xy