summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJoel Teichroeb <joel@teichroeb.net>2019-02-25 23:16:16 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-03-07 00:41:40 (GMT)
commit4e2dd393031bba5abf32f1df6aff107903cabcfd (patch)
tree22906738fe269f7243e64a1f7dfe77be3575dd52 /git-stash.sh
parent8a0fc8d19dff0c0ed09ce6656e353daf06c21892 (diff)
downloadgit-4e2dd393031bba5abf32f1df6aff107903cabcfd.zip
git-4e2dd393031bba5abf32f1df6aff107903cabcfd.tar.gz
git-4e2dd393031bba5abf32f1df6aff107903cabcfd.tar.bz2
stash: convert drop and clear to builtin
Add the drop and clear commands to the builtin helper. These two are each simple, but are being added together as they are quite related. We have to unfortunately keep the drop and clear functions in the shell script as functions are called with parameters internally that are not valid when the commands are called externally. Once pop is converted they can both be removed. Signed-off-by: Joel Teichroeb <joel@teichroeb.net> 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-xgit-stash.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-stash.sh b/git-stash.sh
index 366a082..b8f7023 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -670,7 +670,7 @@ apply)
;;
clear)
shift
- clear_stash "$@"
+ git stash--helper clear "$@"
;;
create)
shift
@@ -682,7 +682,7 @@ store)
;;
drop)
shift
- drop_stash "$@"
+ git stash--helper drop "$@"
;;
pop)
shift