git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Utilize config variable pager.stash in stash list command
@ 2011-08-14 14:31 Ingo Brückl
  2011-08-15 23:47 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: Ingo Brückl @ 2011-08-14 14:31 UTC (permalink / raw)
  To: git

Signed-off-by: Ingo Brückl <ib@wupperonline.de>
---
 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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-08-16 22:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-14 14:31 [PATCH] Utilize config variable pager.stash in stash list command Ingo Brückl
2011-08-15 23:47 ` Jeff King
2011-08-16 10:10   ` Ingo Brückl
2011-08-16 11:24     ` Ingo Brückl
2011-08-16 22:56     ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).