author | Jon Seymour <jon.seymour@gmail.com> | |
Sat, 21 Aug 2010 04:09:01 +0000 (14:09 +1000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 22 Aug 2010 06:51:21 +0000 (23:51 -0700) | ||
commit | fb433dc912ffb64364571750bedde988f29e736b | |
tree | 5f9a3e914b83bf70f9ffb4c88173b5971940bb13 | tree | snapshot |
parent | f276872d89c19c07a4035bc41e4b26523dd3b003 | commit | diff |
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 <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 <jon.seymour@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh | diff | blob | history |