]> git.ipfire.org Git - thirdparty/git.git/commit - git-stash.sh
Teach git-stash to "apply --index"
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 2 Jul 2007 11:14:49 +0000 (12:14 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 6 Jul 2007 08:43:24 +0000 (01:43 -0700)
commit150937c42591b0e9fb6c17f96c459d57b5f3bfdb
treec6e6c6563da7c6e5846056d49ffaee88a92aec60
parent46f74f007b86452c4b4135f5145f94eefc994ea2
Teach git-stash to "apply --index"

When given this subcommand, git-stash will try to merge the stashed
index into the current one. Only trivial merges are possible, since
we have no index for the index ;-) If a trivial merge is not possible,
git-stash will bail out with a hint to skip the --index option.

For good measure, finally include a test case.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-stash.sh
t/t3903-stash.sh [new file with mode: 0755]