Thread (12 messages) flat view 12 messages, 4 authors, 2016-06-15
STALE3730d

[PATCH 3/3] t3700-add: added test for --exclude option

From: Alexander Kuleshov <hidden>
Date: 2016-06-15 23:04:09
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Alexander Kuleshov <redacted>
---
 t/t3700-add.sh | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
index f7ff1f5..c52a5d0 100755
--- a/t/t3700-add.sh
+++ b/t/t3700-add.sh
@@ -81,6 +81,13 @@ test_expect_success '.gitignore is honored' '
 	! (git ls-files | grep "\\.ig")
 '
 
+test_expect_success 'Test that "git add --exclude" works' '
+	touch foo &&
+	touch bar &&
+	git add --exclude="bar" . &&
+	! (git ls-files | grep bar)
+'
+
 test_expect_success 'error out when attempting to add ignored ones without -f' '
 	test_must_fail git add a.?? &&
 	! (git ls-files | grep "\\.ig")
-- 
2.3.3.472.g20ceeac
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help