You can use the following shell script to get a git stash list with prefixes with checkmarks if they have already been applied or there is no need to apply them, since there is no difference.
git stash list | while read line; do \ ref=${line%%:*}; \ prefix=$(test $(git diff $ref | wc -l) = "0" && echo "✔ " || echo " "); \ echo "$prefix$line"; \ done
This will give you a list like:
✔ stash@{0}: WIP on develop: 77a1a66 send 'social.share' message via 'view-req-relay'... stash@{1}: WIP on bigcouch: 4bfa3af added couchdb filters...
And if you like it, you can add it as a git alias:
git config --global --add alias.stash-list '!git stash list | while read line; do ref=${line%%:*}; prefix=$(test $(git diff $ref | wc -l) = "0" && echo "✔ " || echo " "); echo "$prefix$line"; done' git stash-list
(verified using bash and zsh )
muhqu
source share