Skip to contentSkip to conversation

t2202: make sure "git add" (no args) stays a no-op

PATCH New Junio C Hamano 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 t2202: make sure "git add" (no args) stays a no-op

---
 t/t2202-add-addremove.sh | 10 ++++++++++
 1 file changed, 10 insertions(+)
t/t2202-add-addremove.sh +10 -0
index 6a81510..fc8b59e 100755
@@ -41,4 +41,14 @@ test_expect_success 'git add --all' '
 	test_cmp expect actual
 '
 
+test_expect_success 'Just "git add" is a no-op' '
+	git reset --hard &&
+	echo >will-remove &&
+	>will-not-be-added &&
+	git add &&
+	git diff-index --name-status --cached HEAD >actual &&
+	>expect &&
+	test_cmp expect actual
+'
+
 test_done
Signature · 1 line
1.8.3.3-1028-g038de5b