jesseduffield / jesseduffield/lazygit

Reverse apply stash

Open
#4,111 2 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**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: ''
context: 'stash'
command: 'git stash show {{.SelectedStashEntry.Index}} -p | git apply --reverse'
description: "Reverse apply"
subprocess: true
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.