mirror of
https://github.com/git/git.git
synced 2025-03-15 08:12:22 +00:00
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>
This commit is contained in:
parent
391c53bdcd
commit
b7b10385a8
@ -78,8 +78,7 @@ stash@{1}: On master: 9cc0589... Add git-stash
|
|||||||
----------------------------------------------------------------
|
----------------------------------------------------------------
|
||||||
+
|
+
|
||||||
The command takes options applicable to the 'git-log'
|
The command takes options applicable to the 'git-log'
|
||||||
command to control what is shown and how. If no options are set, the
|
command to control what is shown and how. See linkgit:git-log[1].
|
||||||
default is `-n 10`. See linkgit:git-log[1].
|
|
||||||
|
|
||||||
show [<stash>]::
|
show [<stash>]::
|
||||||
|
|
||||||
|
@ -382,11 +382,6 @@ test -n "$seen_non_option" || set "save" "$@"
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
list)
|
list)
|
||||||
shift
|
shift
|
||||||
if test $# = 0
|
|
||||||
then
|
|
||||||
set x -n 10
|
|
||||||
shift
|
|
||||||
fi
|
|
||||||
list_stash "$@"
|
list_stash "$@"
|
||||||
;;
|
;;
|
||||||
show)
|
show)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user