Skip to content
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

Reverse apply stash #4111

Open
J-Kappes opened this issue Dec 12, 2024 · 2 comments
Open

Reverse apply stash #4111

J-Kappes opened this issue Dec 12, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@J-Kappes
Copy link

J-Kappes commented Dec 12, 2024

Is your feature request related to a problem? Please describe.
I have some changes for development/debugging stashed and with git stash show -p | git apply --reverse I can "unapply" the stash before staging to save myself some effort.

Describe the solution you'd like
I would like the option to reverse apply any stash from Lazygit.

Custom Command

    - key: '<c-space>'
      context: 'stash'
      command: 'git stash show {{.SelectedStashEntry.Index}} -p | git apply --reverse'
      description: "Reverse apply"
      subprocess: true
@J-Kappes J-Kappes added the enhancement New feature or request label Dec 12, 2024
@stefanhaller
Copy link
Collaborator

What's wrong with your custom command? This strikes me as an adequate solution for something that feels like a bit of an esoteric use case to me.

@J-Kappes
Copy link
Author

My custom command works perfectly fine for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants