Skip to content

Commit

Permalink
tig: add binding in status to stash all unstaged changes
Browse files Browse the repository at this point in the history
  • Loading branch information
c02y committed Apr 25, 2022
1 parent d9be824 commit 339cae4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tig/.config/tig/config
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ bind stage d view-stage

# NOTE: -p option need to start tig from typing the command instead of using shortcut to open tig
bind generic Y >git stash push -m "%(prompt Msg: )" -p
bind status ! >git stash -m "%(prompt Msg: )" # stash all unstaged changes
bind stash P ?>git stash pop %(stash)
bind stash A ?>git stash apply %(stash)
bind stash ! ?>git stash drop %(stash)
Expand Down

0 comments on commit 339cae4

Please sign in to comment.