diff options
author | Carl Worth <cworth@cworth.org> | 2006-02-21 15:33:49 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-02-21 17:33:43 -0800 |
commit | 60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44 (patch) | |
tree | 2a482e0dd128e37b5639d6b0a9ce63f0eec7ed8d /t | |
parent | 39ba7d54649b35c943b026b54bff40cfa0153f3e (diff) | |
download | git-60ace8790f3cfba4fdc16e71e23c4f9c44ce9b44.tar.gz |
git-add: Add support for --, documentation, and test.
This adds support to git-add to allow the common -- to separate
command-line options and file names. It adds documentation and a new
git-add test case as well.
[jc: this should apply to 1.2.X maintenance series, so I reworked
git-ls-files --error-unmatch test. ]
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 't')
-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 |