stash: refactor stash_create
commit9ca6326dff29b97cfb126e6460105920c492fa15
authorThomas Gummerer <t.gummerer@gmail.com>
Sun, 19 Feb 2017 11:03:10 +0000 (19 11:03 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Feb 2017 07:47:41 +0000 (19 23:47 -0800)
tree69082cf83ed1539d0af7d4490fae5fa9b6308e6e
parent6f5ccd4df56da70434cd807a458a4de015098971
stash: refactor stash_create

Refactor the internal stash_create function to use a -m flag for
specifying the message and -u flag to indicate whether untracked files
should be added to the stash.

This makes it easier to pass a pathspec argument to stash_create in the
next patch.

The user interface for git stash create stays the same.

Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh