summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Johnson <me@adamj.eu>2023-10-10 16:56:54 +0100
committerGitHub <noreply@github.com>2023-10-10 17:56:54 +0200
commitb1821a24f0574488554de8e7f6d0735fb851de8b (patch)
tree68ea41a3700ac733daae5e6c4b8c6783781e677f
parent38db3e16ef3266800e1a9516c0615ff04ec97cb6 (diff)
downloadzsh-b1821a24f0574488554de8e7f6d0735fb851de8b.tar.gz
zsh-b1821a24f0574488554de8e7f6d0735fb851de8b.tar.bz2
zsh-b1821a24f0574488554de8e7f6d0735fb851de8b.zip
fix(git): restore showing patch in `gsts` (#11951)
-rw-r--r--plugins/git/README.md2
-rw-r--r--plugins/git/git.plugin.zsh2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/git/README.md b/plugins/git/README.md
index 33c10ffd0..a4e9f4c4a 100644
--- a/plugins/git/README.md
+++ b/plugins/git/README.md
@@ -185,7 +185,7 @@ plugins=(... git)
| `gstp` | `git stash pop` |
| `gsta` | On Git >= 2.13: `git stash push` |
| `gsta` | On Git < 2.13: `git stash save` |
-| `gsts` | `git stash show` |
+| `gsts` | `git stash show --patch` |
| `gst` | `git status` |
| `gss` | `git status --short` |
| `gsb` | `git status --short -b` |
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index ceb2011f9..b0376308f 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -349,7 +349,7 @@ alias gstp='git stash pop'
is-at-least 2.13 "$git_version" \
&& alias gsta='git stash push' \
|| alias gsta='git stash save'
-alias gsts='git stash show'
+alias gsts='git stash show --patch'
alias gst='git status'
alias gss='git status --short'
alias gsb='git status --short --branch'