summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8f8f547)
raw | patch | inline | side by side (parent: 8f8f547)
author | Thomas Rast <trast@student.ethz.ch> | |
Mon, 19 Oct 2009 15:48:11 +0000 (17:48 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Oct 2009 05:28:26 +0000 (22:28 -0700) |
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: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh | patch | blob | history |
diff --git a/git-stash.sh b/git-stash.sh
index 4febbbfa5d13b241e9bfcc479c6767a90bd12919..f8847c1fc0ab53b2fec96407d710154ea9e16324 100755 (executable)
--- a/git-stash.sh
+++ b/git-stash.sh
list_stash () {
have_stash || return 0
- git log --no-color --pretty=oneline -g "$@" $ref_stash -- |
- sed -n -e 's/^[.0-9a-f]* refs\///p'
+ git log --format="%gd: %gs" -g "$@" $ref_stash --
}
show_stash () {