]> git.ipfire.org Git - thirdparty/git.git/commit - t/t3903-stash.sh
t3903: add test for --intent-to-add file
authorMatthew Kraai <mkraai@its.jnj.com>
Mon, 25 Feb 2019 23:16:11 +0000 (23:16 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2019 00:41:40 +0000 (09:41 +0900)
commitb6e531e6c67c144c3f5cf96cb8be47aad0fcfe36
tree008a7f903e660f9b90eafd44b8d355d295ef1fb5
parent6a0b88b24dc983dab6c8ca887cee3aec288947a7
t3903: add test for --intent-to-add file

Add a test showing the 'git stash' behaviour with a file that has been
added with 'git add --intent-to-add'.  Stash fails to stash the file,
so the purpose of this test is mainly to make sure git doesn't crash,
but exits normally in this situation.

This is in preparation for converting stash into a builtin.

[tg: pulled the test out into a separate commit]

Signed-off-by: Matthew Kraai <mkraai@its.jnj.com>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Thomas Gummerer <t.gummerer@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3903-stash.sh