stash: convert branch to builtin
authorJoel Teichroeb <joel@teichroeb.net>
Mon, 25 Feb 2019 23:16:17 +0000 (23:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2019 00:41:40 +0000 (09:41 +0900)
commit577c1995e8c8cb414a6beb430f220e1ded216a64
tree9a6ec1ea37b80482f7c02e066f665233dab9b649
parent4e2dd393031bba5abf32f1df6aff107903cabcfd
stash: convert branch to builtin

Add stash branch to the helper and delete the apply_to_branch
function from the shell script.

Checkout does not currently provide a function for checking out
a branch as cmd_checkout does a large amount of sanity checks
first that we require here.

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>
builtin/stash--helper.c
git-stash.sh