Commit 391c53bd authored by Thomas Rast's avatar Thomas Rast Committed by Junio C Hamano

stash list: use new %g formats instead of sed

With the new formats, we can rewrite 'git stash list' in terms of an
appropriate pretty format, instead of hand-editing with sed.  This has
the advantage that it obeys the normal settings for git-log, notably
the pager.
Signed-off-by: default avatarThomas Rast <[email protected]>
Signed-off-by: default avatarJunio C Hamano <[email protected]>
parent 8f8f5476
......@@ -205,8 +205,7 @@ have_stash () {
list_stash () {
have_stash || return 0
git log --no-color --pretty=oneline -g "[email protected]" $ref_stash -- |
sed -n -e 's/^[.0-9a-f]* refs\///p'
git log --format="%gd: %gs" -g "[email protected]" $ref_stash --
show_stash () {
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment