stash save: fix parameter handling
A command line "git stash save --keep-index I was doing this" was misparsed and keep-index codepath did not trigger. Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
@ -93,7 +93,7 @@ save_stash () {
|
|||||||
shift
|
shift
|
||||||
esac
|
esac
|
||||||
|
|
||||||
stash_msg="$1"
|
stash_msg="$*"
|
||||||
|
|
||||||
if no_changes
|
if no_changes
|
||||||
then
|
then
|
||||||
@ -267,7 +267,7 @@ show)
|
|||||||
;;
|
;;
|
||||||
save)
|
save)
|
||||||
shift
|
shift
|
||||||
save_stash "$*"
|
save_stash "$@"
|
||||||
;;
|
;;
|
||||||
apply)
|
apply)
|
||||||
shift
|
shift
|
||||||
|
Reference in New Issue
Block a user