git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Ingo Brückl <ib@wupperonline.de>
Date
Aug 14, 2011, 14:31 UTC
Message-ID
<4e47dcf9.55313988.bm000@wupperonline.de>
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
Next: Jeff King
Message 1 of 5 in “Utilize config variable pager.stash in stash list command”
  1. Utilize config variable pager.stash in stash list commandIngo Brückl, Aug 14, 2011
  2. Jeff KingAug 15, 2011
  3. Ingo BrücklAug 16, 2011
  4. Ingo BrücklAug 16, 2011
  5. Jeff KingAug 16, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.