Skip to content

Fixes unable to stash unstaged files when it includes a untracked file #5282

Open
AwaisIsane wants to merge 2 commits into
gitkraken:mainfrom
AwaisIsane:main
Open

Fixes unable to stash unstaged files when it includes a untracked file #5282
AwaisIsane wants to merge 2 commits into
gitkraken:mainfrom
AwaisIsane:main

Conversation

@AwaisIsane

@AwaisIsane AwaisIsane commented May 29, 2026

Copy link
Copy Markdown

❤ Thank you for contributing to GitLens! ❤

🚨 IMPORTANT 🚨

Fixes #5281


Description

the if condition always prevented the command git stash push --include-untracked --keep-index from running

Checklist

  • I have followed the guidelines in the Contributing document
  • My changes follow the coding style of this project
  • My changes build without any errors or warnings
  • My changes have been formatted and linted
  • My changes include any required corresponding changes to the documentation (including CHANGELOG.md and README.md)
  • My changes have been rebased and squashed to the minimal number (typically 1) of relevant commits
  • My changes have a descriptive commit message with a short title, including a Fixes $XXX - or Closes #XXX - prefix to auto-close the issue that your PR addresses

@PhDStudentNuSt

Copy link
Copy Markdown

Is this issue pending approval?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stash Unstaged Changes with untracked files was also stashing staged changes.

3 participants