public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: "Ingo Brückl" <ib@wupperonline•de>
To: git@vger•kernel.org
Subject: [PATCH] Utilize config variable pager.stash in stash list command
Date: Sun, 14 Aug 2011 16:31:49 +0200	[thread overview]
Message-ID: <4e47dcf9.55313988.bm000@wupperonline.de> (raw)

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

             reply	other threads:[~2011-08-14 14:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-14 14:31 Ingo Brückl [this message]
2011-08-15 23:47 ` [PATCH] Utilize config variable pager.stash in stash list command 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4e47dcf9.55313988.bm000@wupperonline.de \
    --to=ib@wupperonline$(echo .)de \
    --cc=git@vger$(echo .)kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox