b1821a24f0574488554de8e7f6d0735fb851de8b
- Author
- Adam Johnson <me@adamj.eu>
- Committer
- GitHub <noreply@github.com>
- Date
Message
fix(git): restore showing patch in `gsts` (#11951)
Diff
1diff --git a/plugins/git/README.md b/plugins/git/README.md
2index 33c10ffd0d49474c13b3098811198e6795b59650..a4e9f4c4a42e95a2f6be72e204692a7cb352b133 100644
3--- a/plugins/git/README.md
4+++ b/plugins/git/README.md
5@@ -185,7 +185,7 @@ plugins=(... git)
6 | `gstp` | `git stash pop` |
7 | `gsta` | On Git >= 2.13: `git stash push` |
8 | `gsta` | On Git < 2.13: `git stash save` |
9-| `gsts` | `git stash show` |
10+| `gsts` | `git stash show --patch` |
11 | `gst` | `git status` |
12 | `gss` | `git status --short` |
13 | `gsb` | `git status --short -b` |
14diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
15index ceb2011f986ac1b27d21dd6b372a8ded33cba9f5..b0376308fd8b8705015102a4d6f2a0ea626a322d 100644
16--- a/plugins/git/git.plugin.zsh
17+++ b/plugins/git/git.plugin.zsh
18@@ -349,7 +349,7 @@ alias gstp='git stash pop'
19 is-at-least 2.13 "$git_version" \
20 && alias gsta='git stash push' \
21 || alias gsta='git stash save'
22-alias gsts='git stash show'
23+alias gsts='git stash show --patch'
24 alias gst='git status'
25 alias gss='git status --short'
26 alias gsb='git status --short --branch'