From cbdf8758785040799cb2ac2043ac0dcbab333fb6 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sat, 19 Jan 2013 10:02:46 -0500 Subject: [PATCH] Added the gsD alias - show stash diff This is a simple alias addition (with readme update) to show a diff for each item in the stash --- modules/git/README.md | 1 + modules/git/alias.zsh | 1 + 2 files changed, 2 insertions(+) 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'