1
0
mirror of https://github.com/git/git.git synced 2024-10-03 17:32:35 +02:00

t7501-commit: Add test for git commit <file> with dirty index.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Kristian Høgsberg 2007-11-15 09:49:58 -05:00 committed by Junio C Hamano
parent 18abc2dba4
commit 1200993a1e

@ -257,4 +257,14 @@ test_expect_success 'amend commit to fix author' '
diff expected current
'
test_expect_success 'git commit <file> with dirty index' '
echo tacocat > elif &&
echo tehlulz > chz &&
git add chz &&
git commit elif -m "tacocat is a palindrome" &&
git show --stat | grep elif &&
git diff --cached | grep chz
'
test_done