diff --git a/modules/git/README.md b/modules/git/README.md index 717f42bb..0153f893 100644 --- a/modules/git/README.md +++ b/modules/git/README.md @@ -170,6 +170,7 @@ Aliases - `gsx` drops a stashed state. - `gsX` drops all the stashed states. - `gsd` lists dropped stashed states. + - `gsD` shows the diff for all stashes - `gsl` lists stashed states. - `gsL` displays the changes recorded in the stash as a diff between the stashed state and its original parent. diff --git a/modules/git/alias.zsh b/modules/git/alias.zsh index 4cb10dc2..b3e5445a 100644 --- a/modules/git/alias.zsh +++ b/modules/git/alias.zsh @@ -155,6 +155,7 @@ alias gsr='git-stash-recover' alias gss='git stash save --include-untracked' alias gsS='git stash save --patch --no-keep-index' alias gsw='git stash save --include-untracked --keep-index' +alias gsD='git show $(git stash list | cut -d":" -f 1)' # Submodule (S) alias gS='git submodule'