summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorPeter Babič <babicpet@gmail.com>2020-05-15 11:01:18 +0200
committerMarc Cornellà <marc.cornella@live.com>2021-01-01 18:23:42 +0100
commit0f6aa0182c8d13a2ff909b650d790f83373dc412 (patch)
tree3ac4584069030c5d66fb2a80e8d2277723b61df6 /plugins
parent3d6db3261082d8f8c2c7dc7d5b94dbcc4ff0b00e (diff)
downloadzsh-0f6aa0182c8d13a2ff909b650d790f83373dc412.tar.gz
zsh-0f6aa0182c8d13a2ff909b650d790f83373dc412.tar.bz2
zsh-0f6aa0182c8d13a2ff909b650d790f83373dc412.zip
feat(git): add grst alias for `git restore --staged` (#8932)
Closes #8932
Diffstat (limited to 'plugins')
-rw-r--r--plugins/git/README.md1
-rw-r--r--plugins/git/git.plugin.zsh1
2 files changed, 2 insertions, 0 deletions
diff --git a/plugins/git/README.md b/plugins/git/README.md
index b7f216813..029386267 100644
--- a/plugins/git/README.md
+++ b/plugins/git/README.md
@@ -136,6 +136,7 @@ plugins=(... git)
| grs | git restore |
| grset | git remote set-url |
| grss | git restore --source |
+| grst | git restore --staged |
| grt | cd "$(git rev-parse --show-toplevel \|\| echo .)" |
| gru | git reset -- |
| grup | git remote update |
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index e32136f15..2f97dbc92 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -236,6 +236,7 @@ alias grrm='git remote remove'
alias grs='git restore'
alias grset='git remote set-url'
alias grss='git restore --source'
+alias grst='git restore --staged'
alias grt='cd "$(git rev-parse --show-toplevel || echo .)"'
alias gru='git reset --'
alias grup='git remote update'