From: Kristian Høgsberg Date: Thu, 15 Nov 2007 14:49:58 +0000 (-0500) Subject: t7501-commit: Add test for git commit with dirty index. X-Git-Tag: v1.5.4-rc0~78^2~19 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1200993a1e885fd67d1a1d63da9d2a0e1ee5bcea;p=git.git t7501-commit: Add test for git commit with dirty index. Signed-off-by: Junio C Hamano --- diff --git a/t/t7501-commit.sh b/t/t7501-commit.sh index e601028d0..ce83af3a0 100755 --- a/t/t7501-commit.sh +++ b/t/t7501-commit.sh @@ -257,4 +257,14 @@ test_expect_success 'amend commit to fix author' ' diff expected current ' + +test_expect_success 'git commit 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