vscode-gitlens icon indicating copy to clipboard operation
vscode-gitlens copied to clipboard

Git stash behavior varies based on staged changes

Open jessdwitch opened this issue 2 years ago • 0 comments

  • GitLens Version:
  • Git Version: Run git --version
  • VSCode Version: Run code --version
  • OS Version:

Steps to Reproduce:

  1. Have multiple uncommitted changes. Stage none of them.
  2. From the Source Control panel, highlight some, but not all of the files.
  3. Right-click and click "Stash Changes"

The highlighted files are stashed, leaving behind the unhighlighted files. "Untracked" status is irrelevant. This is behaving as expected.

Now do it again, but this time with a few files staged. Instead, all tracked files are stashed, ignoring highlighting. These should behave the same regardless of whether there are staged changes.

jessdwitch avatar Jul 01 '22 16:07 jessdwitch