提交 1200993a 编写于 作者: K Kristian Høgsberg 提交者: Junio C Hamano

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

Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 18abc2db
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册