diff options
author | Junio C Hamano <junkio@cox.net> | 2006-02-22 00:35:07 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-22 00:35:07 -0800 |
commit | 752b0fe287185886f9d89ebe126cd2e185d7e063 (patch) | |
tree | 41514057ea4ca7f40e9c5a3c9df1fcafdfe6c23e /t/t3700-add.sh | |
parent | Merge branch 'jc/perl' (diff) | |
parent | git-push: Update documentation to describe the no-refspec behavior. (diff) | |
download | tgif-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-x | t/t3700-add.sh | 22 |
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 |