We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f893b74 commit 76b6235Copy full SHA for 76b6235
1 file changed
t/t2202-add-addremove.sh
@@ -41,4 +41,14 @@ test_expect_success 'git add --all' '
41
test_cmp expect actual
42
'
43
44
+test_expect_success 'Just "git add" is a no-op' '
45
+ git reset --hard &&
46
+ echo >will-remove &&
47
+ >will-not-be-added &&
48
+ git add &&
49
+ git diff-index --name-status --cached HEAD >actual &&
50
+ >expect &&
51
+ test_cmp expect actual
52
+'
53
+
54
test_done
0 commit comments