Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dolt reset should stage working set #8548

Open
max-hoffman opened this issue Nov 12, 2024 · 2 comments
Open

Dolt reset should stage working set #8548

max-hoffman opened this issue Nov 12, 2024 · 2 comments
Labels
good first issue Good for newcomers good repro Easily reproducible bugs version control

Comments

@max-hoffman
Copy link
Contributor

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 <[email protected]>
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
@max-hoffman max-hoffman added the good first issue Good for newcomers label Nov 12, 2024
@sidkhuntia
Copy link

I would like to take up this issue.

@timsehn timsehn added good repro Easily reproducible bugs version control labels Nov 12, 2024
@timsehn
Copy link
Contributor

timsehn commented Nov 12, 2024

Give it a shot! Good repro.

https://docs.dolthub.com/guides/contributing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers good repro Easily reproducible bugs version control
Projects
None yet
Development

No branches or pull requests

3 participants