All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] stash: Utilize config variable pager.stash.list in stash list command
@ 2011-08-16 11:47 Ingo Brückl
  2011-08-17  9:04 ` Ingo Brückl
  0 siblings, 1 reply; 5+ messages in thread
From: Ingo Brückl @ 2011-08-16 11:47 UTC (permalink / raw)
  To: git

Usually it is annoying that the pager is used for stash list output,
so the config variable pager.stash.list will be utilized now and is
a way to control stash list's behavior.

Signed-off-by: Ingo Brückl <ib@wupperonline.de>
---
 git-stash.sh |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/git-stash.sh b/git-stash.sh
index f4e6f05..29702ab 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.list)" = "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-18  7:59 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 11:47 [PATCH] stash: Utilize config variable pager.stash.list in stash list command Ingo Brückl
2011-08-17  9:04 ` Ingo Brückl
2011-08-17 18:44   ` Junio C Hamano
2011-08-18  4:26     ` Jeff King
2011-08-18  7:55       ` Ingo Brückl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.