Staging
v0.8.1
https://github.com/git/git
Raw File
Tip revision: a0a01958d7c059b1535b79a80dc37181b25bb677 authored by Junio C Hamano on 08 April 2006, 01:02:40 UTC
GIT 1.3.0-rc3
Tip revision: a0a0195
t3700-add.sh
#!/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
back to top