summaryrefslogtreecommitdiff
path: root/t/t3700-add.sh
blob: 6cd05c3d9096e8017a6bfb23982ea46e0ae93630 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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