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

[PATCH] stash: Don't paginate by default with list command

From
Ingo Brückl <ib@wupperonline.de>
Date
Aug 30, 2011, 17:21 UTC
Message-ID
<4e5d1e5c.438d9c87.bm000@wupperonline.de>

The output of "stash list" is such that piping into a pager normally isn't necessary but annoying, so disable it by default.

Signed-off-by: Ingo Brückl <ib@wupperonline.de>
---
 git-stash.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/git-stash.sh b/git-stash.sh
index 31dec0a..b92d986 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -264,7 +264,7 @@ have_stash () {

 list_stash () {
 	have_stash || return 0
-	git log --format="%gd: %gs" -g "$@" $ref_stash --
+	git --no-pager log --format="%gd: %gs" -g "$@" $ref_stash --
 }

 show_stash () {
--
1.7.6
Next: Ben Walton
Message 1 of 8 in “stash: Don't paginate by default with list command”
  1. stash: Don't paginate by default with list commandIngo Brückl, Aug 30, 2011
  2. Ben WaltonAug 30, 2011
  3. Ingo BrücklAug 30, 2011
  4. Raphael ZimmererAug 30, 2011
  5. Ingo BrücklAug 31, 2011
  6. Raphael ZimmererAug 30, 2011
  7. Junio C HamanoAug 30, 2011
  8. Raphael ZimmererAug 30, 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.