0f6aa0182c8d13a2ff909b650d790f83373dc412
- Author
- Peter Babič <babicpet@gmail.com>
- Committer
- Marc Cornellà <marc.cornella@live.com>
- Date
Message
feat(git): add grst alias for `git restore --staged` (#8932)
Closes #8932
Diff
1diff --git a/plugins/git/README.md b/plugins/git/README.md
2index b7f216813c45d0b2c8cb5e3231b0d74ad4b0f581..0293862679536bd3d0d76e7f223611623e950cf8 100644
3--- a/plugins/git/README.md
4+++ b/plugins/git/README.md
5@@ -136,6 +136,7 @@ plugins=(... git)
6 | grs | git restore |
7 | grset | git remote set-url |
8 | grss | git restore --source |
9+| grst | git restore --staged |
10 | grt | cd "$(git rev-parse --show-toplevel \|\| echo .)" |
11 | gru | git reset -- |
12 | grup | git remote update |
13diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
14index e32136f15ac14882a10d1a55229093680687ca9c..2f97dbc9273fcaeb0f9b6abcd5fac4f0105b8a32 100644
15--- a/plugins/git/git.plugin.zsh
16+++ b/plugins/git/git.plugin.zsh
17@@ -236,6 +236,7 @@ alias grrm='git remote remove'
18 alias grs='git restore'
19 alias grset='git remote set-url'
20 alias grss='git restore --source'
21+alias grst='git restore --staged'
22 alias grt='cd "$(git rev-parse --show-toplevel || echo .)"'
23 alias gru='git reset --'
24 alias grup='git remote update'