Skip to content

Illogical message when deleting unstaged changes #5388

@WelliSolutions

Description

Describe the bug

When I want to delete an untracked file, the choices and messages are illogical.

To Reproduce

Steps to reproduce the behavior:

  1. Create an empty repo
  2. Create an empty file
  3. Select the file in the files panel
  4. Press D to delete it
  5. The option "Discard unstaged changes" is unavailable (strike through)

Expected behavior

The tool lets me choose "Discard unstaged changes", because that's exactly what it has: unstaged changes only.
The option "Discard all changes" with the message "Discard both staged and unstaged changes" is illogical, because this file does not have staged changes.

Screenshots

Image Image

Version info:

commit=, build date=, build source='debian', version='0.50.0+ds1-1+b2', os=linux, arch=amd64, git version=2.47.3

Terminal info:

Windows with Putty, SSH to Linux Mint

Additional context

I am new to Linux and lazygit and don't want to mess with nightly builds at the moment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions