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 <trast@student.ethz.ch> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Thomas Rast committed
Oct 19, 2009 at 17:48 UTC
b7b10385a84c741a4fe219807c9511f69403640a
2 files changed
+1
-7
Documentation/git-stash.txt
+1
-2
@@ -78,8 +78,7 @@ stash@{1}: On master: 9cc0589... Add git-stash
78
----------------------------------------------------------------
79
+
80
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].
82
83
show [<stash>]::
84
git-stash.sh
-5
@@ -382,11 +382,6 @@ test -n "$seen_non_option" || set "save" "$@"
382
case "$1" in
383
list)
384
shift
385
- if test $# = 0
386
- then
387
- set x -n 10
388
- shift
389
- fi
385
list_stash "$@"
386
;;
387
show)