jesseduffield / lazygit

simple terminal UI for git commands
MIT License
48.13k stars 1.73k forks source link

feat: add confirmation menu when hard reset #3714

Open noahfraiture opened 4 days ago

noahfraiture commented 4 days ago

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 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