Thread (5 messages) flat view 5 messages, 2 authors, 2016-06-15
STALE3718d

[PATCH] Utilize config variable pager.stash in stash list command

From: Ingo Brückl <hidden>
Date: 2016-06-15 22:51:48
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Ingo Brückl <redacted>
---
 By now stash list ignores it.

 git-stash.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/git-stash.sh b/git-stash.sh
index f4e6f05..7bb0856 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -264,7 +264,8 @@ have_stash () {

 list_stash () {
 	have_stash || return 0
-	git log --format="%gd: %gs" -g "$@" $ref_stash --
+	test "$(git config --get pager.stash)" = "false" && no_pager=--no-pager
+	git $no_pager log --format="%gd: %gs" -g "$@" $ref_stash --
 }

 show_stash () {
--
1.7.6
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help