diff options
author | Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com> | 2019-02-25 23:16:19 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-07 09:41:40 +0900 |
commit | 130f2697daf60f09a15884a4510b4fa0230eee98 (patch) | |
tree | 940f22d481d6ddc74c25b3514be6980079df38ad /git-stash.sh | |
parent | c4de61d7a95ebb7197191bc51475d19068b6d526 (diff) | |
download | git-130f2697daf60f09a15884a4510b4fa0230eee98.tar.gz |
stash: convert list to builtin
Add stash list to the helper and delete the list_stash function
from the shell script.
Signed-off-by: Paul-Sebastian Ungureanu <ungureanupaulsebastian@gmail.com>
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-x | git-stash.sh | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/git-stash.sh b/git-stash.sh index 8a9f907aa9..ab3992b59d 100755 --- a/git-stash.sh +++ b/git-stash.sh @@ -399,11 +399,6 @@ have_stash () { git rev-parse --verify --quiet $ref_stash >/dev/null } -list_stash () { - have_stash || return 0 - git log --format="%gd: %gs" -g --first-parent -m "$@" $ref_stash -- -} - show_stash () { ALLOW_UNKNOWN_FLAGS=t assert_stash_like "$@" @@ -591,7 +586,7 @@ test -n "$seen_non_option" || set "push" "$@" case "$1" in list) shift - list_stash "$@" + git stash--helper list "$@" ;; show) shift |