summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-02-22 08:35:07 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-02-22 08:35:07 (GMT)
commit752b0fe287185886f9d89ebe126cd2e185d7e063 (patch)
tree41514057ea4ca7f40e9c5a3c9df1fcafdfe6c23e /t
parent6b98579babe767b343bf6e1448b52befd5fc0a2e (diff)
parentaa064743fa69e2806d5e0af1fab103baa6fa57cd (diff)
downloadgit-752b0fe287185886f9d89ebe126cd2e185d7e063.zip
git-752b0fe287185886f9d89ebe126cd2e185d7e063.tar.gz
git-752b0fe287185886f9d89ebe126cd2e185d7e063.tar.bz2
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')
-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 0000000..6cd05c3
--- /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