threads / discuss / 21216

git stash list with more than 10 items?

Subject: git stash list with more than 10 items?

## tl;dr

4 messages between Oct 12, 2009 and Oct 12, 2009.

replies: 3people: 3as markdown or json

Jeff King· Oct 12, 2009, 17:52 UTC · re: Jef Driesen · lore

Re: git stash list with more than 10 items?

On Mon, Oct 12, 2009 at 05:47:34PM +0200, Jef Driesen wrote:
> Is it possible to make "git stash list" show more than 10 items?
Try "git stash list -30".

Stash listing is internally just "git log -g refs/stash", so you can pass any formatting or limiting arguments you want there (see the git log documentation for ideas). If no arguments are given, we pass "-10".

-Peff
Miklos Vajna· Oct 12, 2009, 19:37 UTC · re: Jeff King · lore

[PATCH] git-stash documentation: mention default options for 'list'

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
I just noticed this was not mentioned in the manpage.
 Documentation/git-stash.txt |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Documentation/git-stash.txt b/Documentation/git-stash.txt
index 3f14b72..fafe728 100644
--- a/Documentation/git-stash.txt
+++ b/Documentation/git-stash.txt
@@ -78,7 +78,8 @@ stash@{1}: On master: 9cc0589... Add git-stash
 ----------------------------------------------------------------
 +
 The command takes options applicable to the 'git-log'
-command to control what is shown and how. See linkgit:git-log[1].
+command to control what is shown and how. If no options are set, the
+default is `-n 10`. See linkgit:git-log[1].
 
 show [<stash>]::
 
-- 
1.6.4
Jeff King· Oct 12, 2009, 19:39 UTC · re: Miklos Vajna · lore

Re: [PATCH] git-stash documentation: mention default options for 'list'

On Mon, Oct 12, 2009 at 09:37:39PM +0200, Miklos Vajna wrote:
> I just noticed this was not mentioned in the manpage.
Thanks, looks like an improvement to me.
-Peff

← back to recent threads