-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when stashing all (more than 1) your "staged" files #3563
Labels
bug
Something isn't working
Comments
I also want to try and fix this |
This one looks easy to fix. It seems that we only need to check if there are any unstaged changes, and if not, fall back to the normal, simple stash. There's a different, but somewhat related problem that seems harder to fix: #3333. In case you feel like looking into that one, too. |
I added the PR, how can I link it to this issue? |
This was referenced May 17, 2024
stefanhaller
added a commit
that referenced
this issue
May 18, 2024
- **PR Description** Use git's `--staged` flag to stash staged changes if available (requires git 2.35.0 or later), and fall back to our previous method if not. This is a lot faster than our previous method, and it fixes two bugs, see linked issues. Fixes #3333 and #3563. - **Please check if the PR fulfills these requirements** * [x] Cheatsheets are up-to-date (run `go generate ./...`) * [x] Code has been formatted (see [here](https://github.com/jesseduffield/lazygit/blob/master/CONTRIBUTING.md#code-formatting)) * [x] Tests have been added/updated (see [here](https://github.com/jesseduffield/lazygit/blob/master/pkg/integration/README.md) for the integration test guide) * [x] Text is internationalised (see [here](https://github.com/jesseduffield/lazygit/blob/master/CONTRIBUTING.md#internationalisation)) * [x] Docs (specifically `docs/Config.md`) have been updated if necessary * [x] You've read through your own file changes for silly mistakes etc
Fixed by #3569. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect not to be an error shown
Screenshots
Steps 1 and 2
Step 3 and 4
Step 5
Result
Version info:
commit=, build date=, build source=homebrew, version=0.41.0, os=darwin, arch=arm64, git version=2.44.0
Additional context
Add any other context about the problem here.
Note: please try updating to the latest version or manually building the latest
master
to see if the issue still occurs.The text was updated successfully, but these errors were encountered: