Skip to content

Discarding file in stash, discards a file the latest commit. #2687

@ttytm

Description

@ttytm

Describe the bug
While viewing a stash, discarding a file discards a file the latest commit.

To Reproduce
Steps to reproduce the behavior:

  1. <C-M> | <Enter> on a stash item
  2. Discard d, confirm
  3. Discard happens in commit, which is unrelated to where discard was pressed.

Expected behavior
Either disallow discarding in stash or discard file in stash, not in commit.

Version info:
commit=v0.38.2, build date=2023-05-03T15:21:01Z, build source=binaryRelease, version=0.38.2, os=linux, arch=amd64, git version=2.40.1

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