From: "Ingo Brückl" <ib@wupperonline.de>
To: git@vger.kernel.org
Subject: [PATCH] stash: Utilize config variable pager.stash.list in stash list command
Date: Tue, 16 Aug 2011 13:47:09 +0200 [thread overview]
Message-ID: <4e4a58c2.48d6f6ce.bm001@wupperonline.de> (raw)
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
next reply other threads:[~2011-08-16 11:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-16 11:47 Ingo Brückl [this message]
2011-08-17 9:04 ` [PATCH] stash: Utilize config variable pager.stash.list in stash list command 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
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=4e4a58c2.48d6f6ce.bm001@wupperonline.de \
--to=ib@wupperonline.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.