summaryrefslogtreecommitdiff
path: root/t/t3700-add.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-02-22 00:35:07 -0800
committerLibravatar Junio C Hamano <junkio@cox.net>2006-02-22 00:35:07 -0800
commit752b0fe287185886f9d89ebe126cd2e185d7e063 (patch)
tree41514057ea4ca7f40e9c5a3c9df1fcafdfe6c23e /t/t3700-add.sh
parentMerge branch 'jc/perl' (diff)
parentgit-push: Update documentation to describe the no-refspec behavior. (diff)
downloadtgif-752b0fe287185886f9d89ebe126cd2e185d7e063.tar.xz
Merge branch 'fix'
* fix: git-push: Update documentation to describe the no-refspec behavior. format-patch: pretty-print timestamp correctly. git-add: Add support for --, documentation, and test.
Diffstat (limited to 't/t3700-add.sh')
-rwxr-xr-xt/t3700-add.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/t/t3700-add.sh b/t/t3700-add.sh
new file mode 100755
index 0000000000..6cd05c3d90
--- /dev/null
+++ b/t/t3700-add.sh
@@ -0,0 +1,22 @@
+#!/bin/sh
+#
+# Copyright (c) 2006 Carl D. Worth
+#
+
+test_description='Test of git-add, including the -- option.'
+
+. ./test-lib.sh
+
+test_expect_success \
+ 'Test of git-add' \
+ 'touch foo && git-add foo'
+
+test_expect_success \
+ 'Post-check that foo is in the index' \
+ 'git-ls-files foo | grep foo'
+
+test_expect_success \
+ 'Test that "git-add -- -q" works' \
+ 'touch -- -q && git-add -- -q'
+
+test_done