Skip to content

Commit b7b1038

Browse files
trastgitster
authored andcommitted
stash list: drop the default limit of 10 stashes
'git stash list' had an undocumented limit of 10 stashes, unless other git-log arguments were specified. This surprised at least one user, but possibly served to cut the output below a screenful without using a pager. Since the last commit, 'git stash list' will fire up a pager according to the same rules as the 'git log' it calls, so we can drop the limit. Signed-off-by: Thomas Rast <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 391c53b commit b7b1038

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

Documentation/git-stash.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ stash@{1}: On master: 9cc0589... Add git-stash
7878
----------------------------------------------------------------
7979
+
8080
The command takes options applicable to the 'git-log'
81-
command to control what is shown and how. If no options are set, the
82-
default is `-n 10`. See linkgit:git-log[1].
81+
command to control what is shown and how. See linkgit:git-log[1].
8382

8483
show [<stash>]::
8584

git-stash.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,11 +382,6 @@ test -n "$seen_non_option" || set "save" "$@"
382382
case "$1" in
383383
list)
384384
shift
385-
if test $# = 0
386-
then
387-
set x -n 10
388-
shift
389-
fi
390385
list_stash "$@"
391386
;;
392387
show)

0 commit comments

Comments
 (0)