The problem I face is that the reset aren't done in pkg/gui/controllers/workspace_reset_controller.go as I though but directly in pkg/commands/git_commands/commit.go where we don't have access to the state of the working directory. If someone have an idea to solve this issue I would happy to make it the merge
PR Description
Please check if the PR fulfills these requirements
[ ] Cheatsheets are up-to-date (run
go generate ./...
)[ ] Code has been formatted (see here)
[ ] Tests have been added/updated (see here for the integration test guide)
[ ] Text is internationalised (see here)
[ ] Docs have been updated if necessary
[ ] You've read through your own file changes for silly mistakes etc
This PR aims to solve this feature request : https://github.com/jesseduffield/lazygit/issues/3709
The problem I face is that the reset aren't done in
pkg/gui/controllers/workspace_reset_controller.go
as I though but directly inpkg/commands/git_commands/commit.go
where we don't have access to the state of the working directory. If someone have an idea to solve this issue I would happy to make it the merge