From: Jon Seymour Date: Sat, 21 Aug 2010 04:09:01 +0000 (+1000) Subject: detached-stash: simplify git stash branch X-Git-Tag: v1.7.3-rc0~3^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/fb433dc912ffb64364571750bedde988f29e736b?ds=inline;hp=fb433dc912ffb64364571750bedde988f29e736b detached-stash: simplify git stash branch This patch teaches git stash branch to tolerate stash-like arguments. In particular, a stash is only required if an argument isn't specified and the stash is only dropped if a stash entry reference was specified or implied. The implementation has been simplified by taking advantage of assert_stash_like() and the variables established by parse_flags_and_rev(). Signed-off-by: Jon Seymour Signed-off-by: Junio C Hamano ---